Jeremie, On Mon, Oct 28, 2013 at 09:41:13PM +0100, Jeremie Le Hen wrote: J> On Tue, Oct 15, 2013 at 09:55:08AM +0000, Gleb Smirnoff wrote: J> > Log: J> > Rewrite netstat/if.c to use getifaddrs(3) and getifmaddrs(3) instead of J> > libkvm digging in kernel memory. This is possible since r231506 made J> > getifaddrs(3) to supply if_data for each ifaddr. J> > J> > The pros of this change is that now netstat(1) doesn't know about kernel J> > struct ifnet and struct ifaddr. And these structs are about to change J> > significantly in head soon. New netstat binary will work well with 10.0 J> > and any future kernel. J> > J> > The cons is that now it isn't possible to obtain interface statistics J> > from a vmcore. J> J> Is there a kgdb macro or something like that that could be used for J> debugging purpose?
No there is no such thing. I've been debugging network related problems a lot, but I never had a need to do 'netstat -i' on a vmcore. What we usually are interested at is consistency of pointers and so on, not packets/bytes counters of an already dead system. Such a tool can be developed and put into src/tools, but I don't see enough demand for it. -- Totus tuus, Glebius. _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"