X-Git-Url: https://git.saurik.com/apple/network_cmds.git/blobdiff_plain/3daef399aa12707bd9256a87337e559c62bd9759..3a228055bcb6b0f405b477b03971508f12ba624a:/netstat.tproj/if.c diff --git a/netstat.tproj/if.c b/netstat.tproj/if.c index ecee15d..49fab94 100644 --- a/netstat.tproj/if.c +++ b/netstat.tproj/if.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)if.c 8.3 (Berkeley) 4/28/95"; */ static const char rcsid[] = - "$Id: if.c,v 1.6 2005/01/25 00:10:05 lindak Exp $"; + "$Id: if.c,v 1.6.40.1 2006/01/10 05:26:27 lindak Exp $"; #endif /* not lint */ #include @@ -380,7 +380,7 @@ intpr(void (*pfunc)(char *)) memcpy(&mask, rti_info[RTAX_NETMASK], ((struct sockaddr_in *)rti_info[RTAX_NETMASK])->sin_len); printf("%-13.13s ", netname(sin->sin_addr.s_addr & mask.sin_addr.s_addr, - mask.sin_addr.s_addr)); + ntohl(mask.sin_addr.s_addr))); printf("%-15.15s ", routename(sin->sin_addr.s_addr));