Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During address validation, count the entire received datagram #531

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

jlaine
Copy link
Contributor

@jlaine jlaine commented Jul 1, 2024

For anti-amplification purposes, servers need to keep track of the amount of data received on unvalidated network paths. We must count the entire datagram size regardless of whether packets are processed or dropped.

This is particularly important when talking to clients who pad datagrams containing INITIAL packets by appending bytes after the long-header packets, which is legitimate behaviour.

For anti-amplification purposes, servers need to keep track of the
amount of data received on unvalidated network paths. We must count the
entire datagram size regardless of whether packets are processed or
dropped.

This is particularly important when talking to clients who pad
datagrams containing INITIAL packets by appending bytes after the
long-header packets, which is legitimate behaviour.
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (79a8caf) to head (9c7d010).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #531   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           25        25           
  Lines         5098      5099    +1     
=========================================
+ Hits          5098      5099    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jlaine jlaine merged commit afe5525 into aiortc:main Jul 1, 2024
30 checks passed
@jlaine jlaine deleted the anti-amplification-fix branch July 1, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant