From owner-freebsd-net@FreeBSD.ORG Wed Feb 12 17:17:35 2014 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 041D4B56 for ; Wed, 12 Feb 2014 17:17:35 +0000 (UTC) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AB79B18C1 for ; Wed, 12 Feb 2014 17:17:34 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 81B4F25D37C3; Wed, 12 Feb 2014 17:17:32 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 2F83EC22BE8; Wed, 12 Feb 2014 17:17:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id a___2eIZfePi; Wed, 12 Feb 2014 17:17:29 +0000 (UTC) Received: from [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6] (unknown [IPv6:fde9:577b:c1a9:4420:cabc:c8ff:fe8b:4fe6]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 66252C22BD1; Wed, 12 Feb 2014 17:17:27 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: netstat for vnets From: "Bjoern A. Zeeb" In-Reply-To: Date: Wed, 12 Feb 2014 17:17:25 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20140211114329.43bda628@x23> To: Vijay Singh X-Mailer: Apple Mail (2.1827) Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 17:17:35 -0000 On 12 Feb 2014, at 14:56 , Vijay Singh wrote: >=20 > On Feb 11, 2014, at 2:43 AM, Marko Zec wrote: >=20 >> On Mon, 10 Feb 2014 21:24:52 -0800 >> Vijay Singh wrote: >>=20 >>> How does "jexec 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? =97=20 Bjoern A. Zeeb ????????? ??? ??????? ??????: '??? ??? ???? ?????? ??????? ?? ?? ??????? ??????? ??? ????? ????? ???? ?????? ?? ????? ????', ????????? ?????????, "??? ????? ?? ?????", ?.???