Skip to content

Instantly share code, notes, and snippets.

Avatar

Rostislav Lisovy lisovy

View GitHub Profile
@austinmarton
austinmarton / sendRawEth.c
Created Feb 27, 2012
Send a raw Ethernet frame in Linux
View sendRawEth.c
/*
* 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>