-----BEGIN PGP SIGNED MESSAGE-----

    Anon> 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

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

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

  Please see recent (November-ish) flame on linux-netdev. 

  Search for SIOGIFNETMASK and for Wietse Venema, (who was in the right, but
flamed by multiple clueless people anyway). Linux gratuitously breaks the
SIOCGIFNETMASK APIs because it wants to.

  Newer kernels have some patch.
  pcap-linux.c should probably use netlink rather than SIOGIFNETMASK if it
wants to be blessed by the Linux networking people.

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] [EMAIL PROTECTED] http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another NetBSD/notebook using, kernel hacking, security guy");  [

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1
Comment: Finger me for keys

iQCUAwUBPESsO4qHRg3pndX9AQHMwAP2NGO4swQdfReno0t7lh9rT9KsbhAt2uz1
ySXMVatoJHO1lRT0pc97f1INoAnHt+CasyinmqdPreIy3LTuUikondlfM2Qky/AU
8kmAHARGlYh0IPjuV9xBWbEj6qphcOcCyE5d+uAsBm1LEDS1/OqaISc0zGaGQQtT
ix5iw6TMFQ==
=QB/U
-----END PGP SIGNATURE-----
-
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