in reply to -lpcap

-lpcap is a library for capturing network packets.

You can get the sources from LBNL's Network Research Group

If you're on windows, you can get a port here

/brother t0mas