Date: Fri, 12 Mar 2010 15:04:59 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netgraph ng_socket.c ng_socketvar.h src/usr.bin/netstat netgraph.c Message-ID: <201003121509.o2CF9G57066249@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
glebius 2010-03-12 15:04:59 UTC FreeBSD src repository Modified files: sys/netgraph ng_socket.c ng_socketvar.h usr.bin/netstat netgraph.c Log: SVN rev 205083 on 2010-03-12 15:04:59Z by glebius Now fix functionality of 'netstat -f netgraph' that hasn't worked starting from netgraph import in 1999. netstat(8) used pointer to node as node address, oops. That didn't work, we need the node ID in brackets to successfully address a node. We can't look into ng_node, due to inability to include netgraph/netgraph.h in userland code. So let the node make a hint for a userland, storing the node ID in its private data. MFC after: 2 weeks Revision Changes Path 1.89 +3 -0 src/sys/netgraph/ng_socket.c 1.11 +1 -0 src/sys/netgraph/ng_socketvar.h 1.17 +3 -3 src/usr.bin/netstat/netgraph.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003121509.o2CF9G57066249>