-
Notifications
You must be signed in to change notification settings - Fork 163
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
[Feature Request] Add AF_PACKET support to the socket interface #1012
Comments
@paulbartell wrote:
After reading the solution given, is there still a need for AF_PACKET / IPPROTO_RAW ? |
I'm suggesting that we provide a AF_PACKET/IPPROTO_RAW socket interface in addition to the existing option. |
In the beginning of FreeRTOS+TCP it had support for the RAW protocol. But at this moment I wonder if the profits would be bigger that the costs. And it looks like issue 1011 is solved already. |
@paulbartell Maybe because I had done most of my work on Windows, I never got exposed to raw sockets and never got used to using them, but this sounds like a nice feature to have. If +TCP supported raw sockets, I absolutely would have used it in a few of my projects and the best part is that it is and older, more standardized, and well documented feature. Great feature request and if this ever materializes into a PR, I'd definitely support it and try to help if I can. |
Is your feature request related to a problem? Please describe.
Linux/BSD style AF_PACKET / IPPROTO_RAW sockets are useful for implementing custom IP protocols or sending and receiving raw ethernet frames.
@evpopov filed Issue #1011 which prompted me to file this ticket.
Adding AF_PACKET sockets to FreeRTOS+TCP would allow users to extend the capabilities of FreeRTOS+TCP with their own custom protocol implementations in a relatively standard way.
Describe the solution you'd like
Add support for *nix style packet sockets ( AF_PACKET ) with SOCK_RAW and SOCK_DGRAM socket types.
Describe alternatives you've considered
Sending raw ethernet frames is currently possible by sending a eNetworkTxEvent request to FreeRTOS+TCP task, however this API is non-standard and not well documented for this purpose.
Additional context
N/A
The text was updated successfully, but these errors were encountered: