On Sat, Jun 16, 2001 at 03:02:27AM -0400, spitzl1 wrote:
> Hi ho from the US Virgin Islands...!
> 
> >> inet.c:98: static char device[IF_NAMESIZE + 1];
> 
> IF_NAMESIZE does not seem to be set anywhere else in the libpcap or nmap
> packages; not set during configure/compile... is it assumed to be defined
> within <ifaddrs.h> if that file exists?

That appears to be the case.  Itojun?

> bsdi-3.1 with gcc 2.7.2.1 fails with
>   ./inet.c: In function `pcap_lookupdev':
>   ./inet.c:98: `IF_NAMESIZE' undeclared (first use this function)
>   ./inet.c:98: (Each undeclared identifier is reported only once
>   ./inet.c:98: for each function it appears in.)
>   ./inet.c:98: size of array `device' has non-integer type
>   *** Error code 1
> 
> All the beast,
> Steven
> 
> ---
> I offer another sizeof() instead,
> 
> --cut--
> *** inet.c.dist Sun Jun  3 04:19:45 2001
> --- inet.c      Sat Jun 16 01:48:03 2001
> ***************
> *** 95,101 ****
>         struct ifaddrs *ifap, *ifa, *mp;
>         int n, minunit;
>         char *cp;
> !       static char device[IF_NAMESIZE + 1];
>   
>         if (getifaddrs(&ifap) != 0) {
>                 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
> --- 95,101 ----
>         struct ifaddrs *ifap, *ifa, *mp;
>         int n, minunit;
>         char *cp;
> !       static char device[ sizeof(ifap->ifa_name) + 1];
>   
>         if (getifaddrs(&ifap) != 0) {
>                 (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
> --cut--
> 
-
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