Skip to content

Instantly share code, notes, and snippets.

View jonathanhood's full-sized avatar
🚀
Building things.

Jonathan Hood jonathanhood

🚀
Building things.
View GitHub Profile
@austinmarton
austinmarton / recvRawEth.c
Created June 3, 2012 07:55
Receive raw Ethernet frames in Linux
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <linux/ip.h>