=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/show.c,v retrieving revision 1.34 retrieving revision 1.35 diff -c -r1.34 -r1.35 *** src/usr.bin/netstat/show.c 2010/10/11 12:33:36 1.34 --- src/usr.bin/netstat/show.c 2011/11/01 17:30:04 1.35 *************** *** 1,4 **** ! /* $OpenBSD: show.c,v 1.34 2010/10/11 12:33:36 claudio Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: show.c,v 1.35 2011/11/01 17:30:04 mikeb Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* *************** *** 116,122 **** * Print routing tables. */ void ! p_rttables(int af, u_int tableid, int hastable) { struct rt_msghdr *rtm; struct sadb_msg *msg; --- 116,122 ---- * Print routing tables. */ void ! p_rttables(int af, u_int tableid) { struct rt_msghdr *rtm; struct sadb_msg *msg; *************** *** 131,141 **** mib[3] = af; mib[4] = NET_RT_DUMP; mib[5] = 0; ! if (hastable) { ! mib[6] = tableid; ! mcnt = 7; ! } else ! mcnt = 6; if (sysctl(mib, mcnt, NULL, &needed, NULL, 0) < 0) err(1, "route-sysctl-estimate"); --- 131,138 ---- mib[3] = af; mib[4] = NET_RT_DUMP; mib[5] = 0; ! mib[6] = tableid; ! mcnt = 7; if (sysctl(mib, mcnt, NULL, &needed, NULL, 0) < 0) err(1, "route-sysctl-estimate");