From owner-freebsd-net Thu Jan 28 19:36:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA10308 for freebsd-net-outgoing; Thu, 28 Jan 1999 19:36:52 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from shell6.ba.best.com (shell6.ba.best.com [206.184.139.137]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA10300 for ; Thu, 28 Jan 1999 19:36:50 -0800 (PST) (envelope-from jkb@shell6.ba.best.com) Received: (from jkb@localhost) by shell6.ba.best.com (8.9.2/8.9.2/best.sh) id TAA29278; Thu, 28 Jan 1999 19:35:42 -0800 (PST) Message-ID: <19990128193542.C25932@best.com> Date: Thu, 28 Jan 1999 19:35:42 -0800 From: "Jan B. Koum " To: dmaddox@conterra.com, net@FreeBSD.ORG Subject: Re: Why does tcpdump not see tun0 when loaded as a kld? References: <19990128213212.A2442@dmaddox.conterra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19990128213212.A2442@dmaddox.conterra.com>; from Donald J . Maddox on Thu, Jan 28, 1999 at 09:32:12PM -0500 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Jan 28, 1999 at 09:32:12PM -0500, "Donald J . Maddox" 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 mtu 1500 > ds0: flags=8201 mtu 65532 > inet 10.0.0.1 netmask 0xff000000 > tun0: flags=8051 mtu 1500 > inet 209.12.169.48 --> 209.12.169.2 netmask 0xffffff00 > tun1: flags=8010 mtu 1500 > lo0: flags=8049 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