Cleanup fg_pcap.c

In addition, this pull request fixes issue #181