Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 1999 19:35:42 -0800
From:      "Jan B. Koum " <jkb@best.com>
To:        dmaddox@conterra.com, net@FreeBSD.ORG
Subject:   Re: Why does tcpdump not see tun0 when loaded as a kld?
Message-ID:  <19990128193542.C25932@best.com>
In-Reply-To: <19990128213212.A2442@dmaddox.conterra.com>; from Donald J . Maddox on Thu, Jan 28, 1999 at 09:32:12PM -0500
References:  <19990128213212.A2442@dmaddox.conterra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 28, 1999 at 09:32:12PM -0500, "Donald J . Maddox" <dmaddox@conterra.com> wrote:
> I recently decided to try building a kernel without static tun0,
> and use the kld module instead.  Unfortunately, I am seeing this:
> 
> # ifconfig -a
> lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
> ds0: flags=8201<UP,ALLMULTI,MULTICAST> mtu 65532
> 	inet 10.0.0.1 netmask 0xff000000 
> tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
> 	inet 209.12.169.48 --> 209.12.169.2 netmask 0xffffff00 
> tun1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> 	inet 127.0.0.1 netmask 0xff000000 
> 
> # tcpdump -i tun0
> tcpdump: tun0: Device not configured
> 
> Does tun0 _have_ to be compiled in statically for tcpdump to see
> it?
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message

	Because bpf attaches to devices during the boot time. Look in
	/usr/src/sys/net/bpf.c around line 1239 in bpfattach()

	Can someone confirm since I am not sure myself if that is true?

-- Yan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990128193542.C25932>