Date: Mon, 1 Sep 2008 18:49:02 +0530 From: "Debarshi Ray" <debarshi.ray@gmail.com> To: "Bruce M. Simpson" <bms@freebsd.org> Cc: FreeBSD networking and TCP/IP list <freebsd-net@freebsd.org> Subject: Re: reading routing table Message-ID: <3170f42f0809010619i4d95318x7496e45a442c9654@mail.gmail.com> In-Reply-To: <48BBE7B2.4050409@FreeBSD.org> References: <3170f42f0809010507q6c37a9d5q19649bc261d7656d@mail.gmail.com> <48BBE7B2.4050409@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> You want 'netstat -rn' to dump them, this is a very common command which > should be present in a number of online resources on using and administering > FreeBSD so I am somewhat surprised that you didn't find it. I know about netstat. I did mention having gone through its implementation. :-) What I am asking about is related to the implementation of the 'netstat -rn' functionality, which on some non-FreeBSD systems is also provided by 'route [show] -n'. > P.S. Look in the sysctl tree if you need to snapshot the kernel IP > forwarding tables. You can use kmem, but it is generally frowned upon unless > you're working from core dumps -- kernels can be built without kmem support, > or kmem locked down, etc. Ok, I will have a look. Thanks. Happy hacking, Debarshi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3170f42f0809010619i4d95318x7496e45a442c9654>