Skip to content

Instantly share code, notes, and snippets.

@usefulcat
usefulcat / filtervlan.rs
Created September 19, 2018 15:36
Rust program (well, most of it) that reads pcap data from stdin and writes same to one or more files and/or to stdout.
use std::io::{self, BufReader, BufWriter, Read, Write};
use std::slice;
use std::env;
use std::fs;
extern crate etherparse;
use etherparse::*;
mod pcap;

Keybase proof

I hereby claim:

  • I am usefulcat on github.
  • I am usefulcat (https://keybase.io/usefulcat) on keybase.
  • I have a public key ASCcHzHrIZx67ndinJhdU6Pg35i8ZzF0L03n0GplX0sp9go

To claim this, I am signing this object: