Greetings Everyone !
Im looking for a tutorial, or explanations on useing raw sockets to
send and receive raw ethernet packets on linux.
Ive found some example of the basics, but there are caveats to the
process that dont seem to be documented. For example, how to
get the interface index given the ethernet device name, whether the
socket needs to be in blocking/non-blocking mode, can I simply
stuff a socket buffer on an interfaces outgoing queue without useing
the socket functions, relevant ioctls, etc, etc.
If anyone has any information or knows where I can find a tutorial
on this, please let me know.
Thanks !
Mike
p.s. I need to send raw ethernet frames for a new protocol im
developing. IP/UDP/TCP packets just doesnt cut it in this case.