proper prototypes
cleanup and signal handlers to clear promisc on errors
implement --quiet flag
dont override premade flags
better handling and checking of received packets
introduce binary state-log file