Skip to content

Instantly share code, notes, and snippets.

@INT0x00
INT0x00 / ethsend.c
Last active February 4, 2024 16:25
raw ethernet frame sending explained in code..
/* think this is good way to send ethernet frame, commented where needed.
use code for experimentation ,use man pages if u want to build something from it...
some useful man pages on my machine were: man 2 socket, man 7 socket, man 7 packet, man 7 netdevice, man 7 raw
to slap a licence i'd say gpl-2 so that. https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
this gist inspired me to make one which is more tuned to actual raw eth frames and is a bit more complete/correct
in that regard in my opinion.
https://gist.github.com/austinmarton/1922600