netstat for vnets

Bjoern A. Zeeb bz at FreeBSD.org
Wed Feb 12 17:17:35 UTC 2014


On 12 Feb 2014, at 14:56 , Vijay Singh <vijju.singh at gmail.com> wrote:

> 
> On Feb 11, 2014, at 2:43 AM, Marko Zec <zec at fer.hr> wrote:
> 
>> On Mon, 10 Feb 2014 21:24:52 -0800
>> Vijay Singh <vijju.singh at gmail.com> wrote:
>> 
>>> How does "jexec <jid> netstat -an" get its data from the kernel? I
>>> know that netstat uses kvm, but I'm not sure how it works with
>>> vnet-jails. Any pointers would be much appreciated.

netstat -an should use sycsctls;  see net.inet.tcp.pcblist , net.inet.udp.pcblist , net.inet.raw.pcblist , net.local.stream.pcblist , net.local.dgram.pcblist , etc.

netstat -rn used to be the problem but a quick glance suggests that it might use a sysctl as well these days?

— 
Bjoern A. Zeeb                             ????????? ??? ??????? ??????:
'??? ??? ???? ??????  ??????? ?? ?? ??????? ??????? ??? ????? ????? ????
?????? ?? ????? ????',  ????????? ?????????, "??? ????? ?? ?????", ?.???



More information about the freebsd-net mailing list