On Wed, Feb 22, 2006 at 08:37:18AM +0800, kashif javed wrote: > I am using RedHat Linux 9.0 and its version of pcap doesnt support the > apis mentioned by you pcap_inject() and pcap_sendpacket() . So i tried > downloading libpcap 0.9.4 from and it does support the two > aforementioned apis. Now i am confused how to make it possible that my > application uses the latest version of pcap and doesnt use the default > one.
You need to force linking against the newer version. It's easier to do this if you link against libpcap statically. See the FreeBSD port of tcpdump for one way to do this -- the configure script will prefer to look for an untarred and built libpcap source tree in its parent directory. However, if you're using dynamic linking, all bets are off, unless you change the -rpath option during linking. BMS - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.
