Creating a simple port scanner using libnet and libpcap together