rust-lang / socket2

Advanced configuration options for sockets.
https://docs.rs/socket2
Apache License 2.0
671 stars 220 forks source link

Add Layer2 protocols #522

Open hercule-karuha opened 1 month ago

hercule-karuha commented 1 month ago

The AF_PACKET domain has already been added. But without ETH_P_ALL or other eth protocols, we still can't receive or send datalink layer packets. Is it possilbe to add L2 protocols?

Thomasdezeeuw commented 1 month ago

Sure more constants for Domain would be accepted.