This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Thomas Karpiniec, 1 Sep 2017 | |
// Companion code to https://karp.id.au/a/2017/09/01/layer-2-raw-sockets-on-rustlinux/ | |
extern crate libc; | |
use std::io; | |
use std::ptr; | |
use std::mem; | |
use std::collections::HashMap; | |
use std::net::Ipv4Addr; |