Skip to content

Instantly share code, notes, and snippets.

View seban-slt's full-sized avatar

Sebastian Igielski seban-slt

View GitHub Profile
@seban-slt
seban-slt / recvRawEth.c
Created May 17, 2016 11:56 — 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 <linux/ip.h>
@seban-slt
seban-slt / sendRawEth.c
Created May 17, 2016 11:56 — 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>

Keybase proof

I hereby claim:

  • I am seban-slt on github.
  • I am seban (https://keybase.io/seban) on keybase.
  • I have a public key whose fingerprint is 943D 3B3F 7EED 316C CA4C BFA0 8AFB 1FBE EC85 CE15

To claim this, I am signing this object: