From owner-freebsd-questions Fri Jun 18 0:37:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id CCB1914C49 for ; Fri, 18 Jun 1999 00:37:37 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id DAA10708; Fri, 18 Jun 1999 03:37:51 -0400 (EDT) Date: Fri, 18 Jun 1999 02:37:49 -0500 (EST) From: Alfred Perlstein To: Riccardo Veraldi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: problem: reading from bpf interface In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 18 Jun 1999, Riccardo Veraldi wrote: > > Hello. > I Am trying to use bpf to read raw data from my ether interface. > After setting up all the needed stuff with ioctl after opening the > bpf interface, I use read() to read data in a char* buffer. > The thing is that nothing is read into the buffer. > the bpf is enabled in the kernel of course. > What could be the problem ?? > I could include the few 30 lines of code I use to open and read from the > bpf device. A url to the code would be suffcient. what user are you running the program as? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message