Skip to content

Instantly share code, notes, and snippets.

View abrodkin's full-sized avatar

Alexey Brodkin abrodkin

View GitHub Profile
@abrodkin
abrodkin / recvRawEth.c
Last active April 7, 2021 05:11 — forked from austinmarton/recvRawEth.c
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 <stdio.h>