Fixing some pcap pointers, add some debug stuff