]> git.saurik.com Git - apple/network_cmds.git/blobdiff - netstat.tproj/if.c
network_cmds-245.11.tar.gz
[apple/network_cmds.git] / netstat.tproj / if.c
index ecee15d5753a15b988935bce103b8793a45894a0..49fab945c11ca5c1c75cbf709145eef9cf8260a4 100644 (file)
@@ -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 <sys/types.h>
@@ -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));