Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: reduce denial of service protection overhead #1157

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

Merged
merged 3 commits into from
Apr 7, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Apr 7, 2023

If there is a device with a bad mdns stack that is flooding the network with response packets there is little we can do but optimize how we handle this as mdns works on a trust model of generally accepting network traffic. Its unlikely that the user is going to remove the offending the device so we will reduce the overhead to deal with one of these.

bdraco added 3 commits April 7, 2023 12:39
If there is a device with a bad mdns stack that is flooding
the network with response packets there is little we can do
but optimize how we handle this as mdns works on a trust model
of generally accepting network traffic. Its unlikely that the
user is going to remove the offending the device so we will
reduce the overhead to deal with one of these.
@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (b65e279) 99.81% compared to head (de29d6e) 99.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1157      +/-   ##
==========================================
- Coverage   99.81%   99.81%   -0.01%     
==========================================
  Files          22       22              
  Lines        2654     2652       -2     
  Branches      463      463              
==========================================
- Hits         2649     2647       -2     
  Misses          3        3              
  Partials        2        2              
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_handlers.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bdraco
Copy link
Member Author

bdraco commented Apr 7, 2023

This helps a lot with those sonoff plugs that use mdns to send state updates.... 🤦

@bdraco bdraco marked this pull request as ready for review April 7, 2023 23:10
@bdraco bdraco merged commit 2c2f26a into master Apr 7, 2023
@bdraco bdraco deleted the drop_some_isinstance branch April 7, 2023 23:10
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.