> In pcap-snoop.c:
> #ifdef SIOCGIFMTU
> /*
> * XXX - IRIX appears to give you an error if you try to set the
> * capture length to be greater than the MTU, so let's try to get
> * the MTU first and, if that succeeds, trim the snap length
> * to be no greater than the MTU.
> */
> (void)strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name));
> if (ioctl(fd, SIOCGIFMTU, (char *)&ifr) < 0) {
> snprintf(ebuf, PCAP_ERRBUF_SIZE, "SIOCGIFMTU: %s",
> pcap_strerror(errno));
> goto bad;
> }
>
> Works fine with 6.5 but not 6.2
...
> According to 6.2, SIOCGIFMTU is an invalid operation on the socket.
Does that mean that
1) SIOCGIFMTU isn't defined
or
2) it *is* defined, but doesn't work on a
SOCK_RAW/RAWPROTO_SNOOP socket?
> > > but hey).
> > > I ripped the snprintf.c from tcpdump 3.6.2 and made a few mods for it
> > > to be a self-contained file.
> >
> > You might want to note that the problem here is presumably not with
> > tcpdump, which supplies its own "snprintf()", but with other
> > applications using libpcap, which might not supply their own
> > "snprintf()", or whose configure scripts might not be set up to, when
> > checking for libpcap's existence, supply an "snprintf()" for the
> > autoconf test program.
>
> I'm aware of this.
Yes, but the rest of tcpdump-workers might not be; your mail didn't
indicate *why* not having "snprintf.c" in libpcap was a problem, so I
sent mail to indicate why.
-
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