This is a basic packet sniffer program referred from "Basic Packet-Sniffer Construction from the Ground Up" by Chad Renfro