On Sun, Jan 13, 2002 at 05:31:46PM -0600, Xinwen - Fu wrote:
>       I use libpcap-0.6.2 under redhat 6.1. But pcap_lookupnet() returns
> an net adress and mask
> different from the real address specified to ethernet card.
> pcap_lookupdev() gives the correct name.
> 
>       My network is OK. The ethernet card is right.
> 
>       What's the possible problem

A Linux kernel bug?  "pcap_lookupnet()" just does the standard
SIOCGIFADDR and SIOCGIFNETMASK calls, which should work.

You may have to trace through the "pcap_lookupnet()" code to see what
the SIOCGIFADDR and SIOCGIFNETMASK calls return.

What version of the kernel is on your machine?
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe

Reply via email to