Compiling To compile simply run this command on your Linux system: gcc sniffer.c -o sniffer Running To run, you must have root privlages: ./sniffer