From owner-freebsd-questions Tue Jul 20 17:23:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-42.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.42]) by hub.freebsd.org (Postfix) with ESMTP id 7610814F3B for ; Tue, 20 Jul 1999 17:23:42 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.awfulhak.org (root@dev.lan.awfulhak.org [172.16.0.5]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id WAA00468; Tue, 20 Jul 1999 22:03:00 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from dev.lan.awfulhak.org (brian@localhost [127.0.0.1]) by dev.lan.awfulhak.org (8.9.3/8.9.3) with ESMTP id WAA41636; Tue, 20 Jul 1999 22:03:00 +0100 (BST) (envelope-from brian@dev.lan.awfulhak.org) Message-Id: <199907202103.WAA41636@dev.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Divya Mehra Cc: freebsd-questions@FreeBSD.ORG Subject: Re: bpf and user PPP ( tun0 ) In-reply-to: Your message of "Tue, 20 Jul 1999 11:19:10 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 20 Jul 1999 22:02:59 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message