tcpdump mailing list archives
Re: any way to write datalink packets?
From: Bruce M Simpson <bms () spc org>
Date: Wed, 22 Feb 2006 01:05:21 +0000
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.
Current thread:
- any way to write datalink packets? kashif javed (Feb 19)
- Re: any way to write datalink packets? Guy Harris (Feb 19)
- Message not available
- Re: any way to write datalink packets? kashif javed (Feb 21)
- Re: any way to write datalink packets? Bruce M Simpson (Feb 21)
- Message not available
- Re: any way to write datalink packets? Guy Harris (Feb 19)
- <Possible follow-ups>
- Re: any way to write datalink packets? santosh.soule (Feb 19)