-
Notifications
You must be signed in to change notification settings - Fork 447
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
Hardware Checksum Calculation #36
Comments
Sure. Do you have any particular hardware in mind? Show me the datasheet and I'll think about exposing this capability. |
STM32F2xxx/F4xxx (F4 is just a superset with more functionality basically, ethernet is afaik the same): Searching for "checksum" does already give good results. ( datasheet, which doesn't really contain much information in that regard: |
To clarify, since it wasn't really clearly worded: The only thing that smoltcp would have to support for this, The hardware will generate & insert the checksum on its own before sending the frame. As shown above LWIP (an ip stack) supports fine-grained control of checksums e.g. disabling them for ICMP, ... Not sure how to best expose this in rust, using features would lead to a "feature overload". |
Yeah, I understood. I haven't had time to flesh out the ideas I had, hence the silence. |
OK, so the route to fixing this would be to:
|
…creased' into 'rpl' rpl: test behaviour when increasing version number Closes smoltcp-rs#36 and smoltcp-rs#48 See merge request etrovub/smartnets/smoltcp!10
I think the possibility to move checksum calculation to the hardware when possible,
would be neat.
E.g. With LWIP you can do
and use
Checksum insertion control
of STM32 to let the hardware handle those checksums.You'd simply not calculate the checksum in the software &
the SoC will insert it before transmitting/receiving the frame.
The text was updated successfully, but these errors were encountered: