general library for network sniffing