=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/netstat/inet.c,v retrieving revision 1.118 retrieving revision 1.119 diff -c -r1.118 -r1.119 *** src/usr.bin/netstat/inet.c 2011/07/05 05:14:41 1.118 --- src/usr.bin/netstat/inet.c 2011/11/01 00:00:01 1.119 *************** *** 1,4 **** ! /* $OpenBSD: inet.c,v 1.118 2011/07/05 05:14:41 bluhm Exp $ */ /* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: inet.c,v 1.119 2011/11/01 00:00:01 mikeb Exp $ */ /* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */ /* *************** *** 108,114 **** * -a (all) flag is specified. */ void ! protopr(u_long off, char *name, int af, u_long pcbaddr) { struct inpcbtable table; struct inpcb *head, *next, *prev; --- 108,114 ---- * -a (all) flag is specified. */ void ! protopr(u_long off, char *name, int af, u_int tableid, u_long pcbaddr) { struct inpcbtable table; struct inpcb *head, *next, *prev; *************** *** 168,173 **** --- 168,176 ---- } continue; } + + if (inpcb.inp_rtableid != tableid) + continue; kread((u_long)inpcb.inp_socket, &sockb, sizeof (sockb)); if (istcp) {