Skip to content

Instantly share code, notes, and snippets.

View pvcraven's full-sized avatar

Paul V Craven pvcraven

View GitHub Profile
@pvcraven
pvcraven / sendRawEth.c
Created September 21, 2016 16:01 — forked from austinmarton/sendRawEth.c
Send a raw Ethernet frame 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>