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.

Kashif



On 2/21/06, kashif javed <[EMAIL PROTECTED]> 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.
>
> Kashif
>
>
>
> On 2/20/06, Guy Harris <[EMAIL PROTECTED]> wrote:
> >  kashif javed wrote:
> >
> > > As pointed out by Richard Stevens in the chapter 26 of
> > > his book " UNIX Network Programming vol1: 2nd
> > > edition", pcap supports packets while reading. I want to
> > > ask is there any way to write datalink packets?
> >
> > Libpcap 0.9.x has pcap_inject() and pcap_sendpacket() to send packets.
> > WinPcap has had pcap_sendpacket() for a while.
> >
> > > I mean
> > > if an application sends out a packet, can it be captured
> > > by the pcap?
> >
> > That's a completely different question.
> >
> > Whether pcap will see the packets sent by pcap on the same machine might
> > depend on the OS you're running.  It should be able to see packets sent
> > by pcap on machines on other machines, as those packets are
> > indistinguishable from packets sent by other mechanisms.
> >
> > > Moreover , can i use pcap for capturing packets on
> > > IEEE 802.11 or WLAN,
> >
> > Yes, but it doesn't support it very well on OSes other than Linux and
> > newer versions of the BSDs.
> > -
> > This is the tcpdump-workers list.
> > Visit https://lists.sandelman.ca/ to unsubscribe.
> >
>
>
-
This is the tcpdump-workers list.
Visit https://lists.sandelman.ca/ to unsubscribe.

Reply via email to