$NetBSD: patch-ag,v 1.5 2002/04/09 09:53:55 itojun Exp $ --- agent/mibgroup/mibII/ipAddr.c.orig Sat Mar 9 11:07:37 2002 +++ agent/mibgroup/mibII/ipAddr.c Tue Apr 9 18:28:34 2002 @@ -278,7 +278,11 @@ #elif defined(linux) || defined(sunV3) long_return = ntohl(((struct sockaddr_in *) &lowin_ifnet.ifu_broadaddr)->sin_addr.s_addr) & 1; #else +#ifdef netbsd1 + long_return = ((struct sockaddr_in *) &lowin_ifaddr.ia_broadaddr)->sin_addr.s_addr & 1; +#else long_return = ntohl(((struct sockaddr_in *) &lowin_ifaddr.ia_broadaddr)->sin_addr.s_addr) & 1; +#endif #endif return(u_char *) &long_return; case IPADREASMMAX: