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

Updating smoltcp to prevent DoS during network floods #423

Merged
merged 4 commits into from
Jul 15, 2024

Conversation

ryan-summers
Copy link
Member

This PR fixes #337 by updating the smoltcp dependency to use a branch where the maximum MAC frame processing loop of smoltcp is limited by the sockets in use (in our case, 1 frame per poll() call).

It also updates logging to get rid of an extra dependency.

I programmed stabilizer to stream to multicast 244.192.168.1:9293 and verified that stream data could be acquired using the stabilizer-streaming pds binary. I then programmed booster with main firmware and verified that the device continually reset due to watchdog timeouts. I then tried this new firmware and confirmed that no further watchdogs were encountered.

Copy link
Member

@jordens jordens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A clippy lint here and a couple which seem to be left over from the hal 1.0 changes.
Otherwise OK.

@ryan-summers ryan-summers added this pull request to the merge queue Jul 15, 2024
Merged via the queue into main with commit cccad4b Jul 15, 2024
4 checks passed
@ryan-summers ryan-summers deleted the issue/337/network-watchdog branch July 15, 2024 14:43
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.

Network traffic triggers watchdog
2 participants