pcap_example.c: fixed handling non-ip packets