Mac OS X
Peter Van Epp
vanepp at sfu.ca
Tue May 14 11:59:08 EDT 2002
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