-
Notifications
You must be signed in to change notification settings - Fork 484
Add new socket type for raw ethernet protocols #1013
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
base: main
Are you sure you want to change the base?
Conversation
7b7b67f
to
682e851
Compare
682e851
to
de3eaae
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1013 +/- ##
==========================================
- Coverage 80.34% 80.18% -0.17%
==========================================
Files 81 82 +1
Lines 24335 24627 +292
==========================================
+ Hits 19552 19746 +194
- Misses 4783 4881 +98 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
de3eaae
to
ef11c4f
Compare
I missed this PR and made similar thing, so... +1 for raw ethernet sockets |
ef11c4f
to
1146477
Compare
Something you might want to add the Right now I'm getting the compile error: compile_error!("If you enable the socket feature, you must enable at least one of the following features: socket-raw, socket-udp, socket-tcp, socket-icmp, socket-dhcpv4, socket-dns"); |
fb9eae3
to
833d319
Compare
It's cool to hear that others would like to use this lib in similar ways as we do. But I'm not sure if it's really worth investing more time into polishing this PR. |
Hi everyone!
I'm currently working on a rust library for a protocol which runs on plain ethernet using a custom ethertype (TECMP on 0x99FE).
It also uses an additional IP-based protocol for discovery and configuration.
I would also like to use this library on some STM32, so I tried to port it from native linux sockets to the smoltcp stack.
Thus I started to implement some basic support for raw ethernet sockets.
This is still a work in progress but the basic functionality already works on an STM32F7.
It is still missing support for Metadata and the send API could be more convenient
but I would like to get this out there and gather some early feedback as to whether you would even consider merging something like this.
So just some initial questions:
Thank you all for your feedback and your great contribution to the embedded rust ecosystem!