Mac OS X

Carter Bullard carter at qosient.com
Thu May 16 09:57:28 EDT 2002


Hey Peter,
   Well, we can special case it.  We're just doing
the gethostbyname() in case the config passed a host
name instead of an address.  If this the essence of
the problem?

Carter

Carter Bullard
QoSient, LLC
300 E. 56th Street, Suite 18K
New York, New York  10022

carter at qosient.com
Phone +1 212 588-9133
Fax   +1 212 588-9134
http://qosient.com


> -----Original Message-----
> From: owner-argus-info at lists.andrew.cmu.edu 
> [mailto:owner-argus-info at lists.andrew.cmu.edu] On Behalf Of 
> Peter Van Epp
> Sent: Tuesday, May 14, 2002 11:59 AM
> To: argus
> Subject: Mac OS X
> 
> 
> 	It appears OS X is unhappy about looking up 0.0.0.0 
> with gethostbyname. What we do about it I'm not sure ...
> 
> OS X:
> 
> 1685          if ((alist = argus_nametoaddr(str)) != NULL)  {
> (gdb) 
> argus_nametoaddr (name=0xbfffe71b "0.0.0.0") at ./argus_filter.c:4476
> 4476       if ((hp = gethostbyname(name)) != NULL) {
> (gdb) 
> 4488          return 0;
> (gdb) 
> 4489    }
> (gdb) print hp
> $7 = (struct hostent *) 0x0
> (gdb) s
> RaParseCIDRAddr (str=0xbfffe71b "0.0.0.0") at ./ramon.c:1698
> 1698             error++;
> 1685          if ((alist = argus_nametoaddr(str)) != NULL)  {
> (gdb) 
> argus_nametoaddr (name=0xbfffe71b "0.0.0.0") at ./argus_filter.c:4476
> 4476       if ((hp = gethostbyname(name)) != NULL) {
> (gdb) 
> 4488          return 0;
> (gdb) 
> 4489    }
> (gdb) print hp
> $7 = (struct hostent *) 0x0
> (gdb) s
> RaParseCIDRAddr (str=0xbfffe71b "0.0.0.0") at ./ramon.c:1698
> 1698             error++;
> 
> FreeBSD:
> 
> 1679             if ((ptr = strchr (str, '/')) != NULL) {
> (gdb) 
> 1685          if ((alist = argus_nametoaddr(str)) != NULL)  {
> (gdb) 
> argus_nametoaddr (name=0xbfbfe8af "255.255.255.255") at 
> ./argus_filter.c:4476
> 4476       if ((hp = gethostbyname(name)) != NULL) {
> (gdb) 
> 4482          for (p = (unsigned int **)hp->h_addr_list; *p; ++p)
> (gdb) 
> 4483             NTOHL(**p);
> (gdb) 
> 4482          for (p = (unsigned int **)hp->h_addr_list; *p; ++p)
> (gdb) print hp
> $1 = (struct hostent *) 0x281340b0
> 
> Peter Van Epp / Operations and Technical Support 
> Simon Fraser University, Burnaby, B.C. Canada
> 
> 
> 



More information about the argus mailing list