On Mon, Apr 22, 2002 at 02:04:10AM +0200, S�bastien Peterson wrote: > I would like to capture packets on a "sit" interface. In fact I want to > capture ipv6 packets wich I send and receive through a IPv6 under IPv4 > tunnel to the 6bone. But when I do "pcap_lookupnet" (using libpcap) on > this device, I'm told that the interface doesn't have an IPv4 address.
Does it *have* an IPv4 address? If not, then you will, obviously, be told that it doesn't have one. If so, you will not be able to use any filter expressions that require the IPv4 netmask (the address isn't used by libpcap); avoid using those expressions, and just pass in 0, or something, to "pcap_compile()". Note that tcpdump merely prints a warning if it can't get the IPv4 address and netmask for an interface; it still captures on it, with the IPv4 address (which is used by tcpdump's "-f" flag) and netmask being treated as if they were 0. - 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
