Date: Tue, 20 Jul 1999 22:02:59 +0100 From: Brian Somers <brian@Awfulhak.org> To: Divya Mehra <divya@nttmcl.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: bpf and user PPP ( tun0 ) Message-ID: <199907202103.WAA41636@dev.lan.awfulhak.org> In-Reply-To: Your message of "Tue, 20 Jul 1999 11:19:10 PDT." <Pine.GSO.3.95LJ1.1b4.990720111240.25028A-100000@alicia.nttmcl.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi,
>
> Can anyone tell me if bpf support user ppp packet ( tun 0 device) or it
> can be used only for kernel ppp ( ppp0 device ) ?
Yes.
> If it can support user ppp then what value should BIOSETIF be returning
> when bpf is to be used for reading ppp packets?
From the bpf man page:
BIOCSETIF (struct ifreq) Sets the hardware interface associate with
the file. This command must be performed before any pack-
ets can be read. The device is indicated by name using
the ifr_name field of the ifreq structure. Additionally,
performs the actions of BIOCFLUSH.
> Thanks,
> Divya
>
> **************************************************************************
> Divyashikha Mehra NTT Multimedia Communications Laboratories
> Computer Systems Designer 250 Cambridge Avenue, Suite 205
> 650-833-3655 (Voice) Palo Alto, CA 940040, USA.
> mailto : divya@nttmcl.com
> ***************************************************************************
--
Brian <brian@Awfulhak.org> <brian@FreeBSD.org>
<http://www.Awfulhak.org> <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour ! <brian@FreeBSD.org.uk>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907202103.WAA41636>
