quartiq / booster

Firmware for the Sinara Booster RF amplifier
Apache License 2.0
13 stars 1 forks source link

Updating smoltcp to prevent DoS during network floods #423

Closed ryan-summers closed 1 month ago

ryan-summers commented 1 month ago

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.