From owner-freebsd-questions Fri Jun 18 0:18:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from righi.ml.org (RIGHI.DF.UNIBO.IT [137.204.49.17]) by hub.freebsd.org (Postfix) with ESMTP id 5F35714E87 for ; Fri, 18 Jun 1999 00:18:43 -0700 (PDT) (envelope-from riccardo@righi.ml.org) Received: from localhost (riccardo@localhost) by righi.ml.org (8.9.2/8.9.1) with ESMTP id JAA44662 for ; Fri, 18 Jun 1999 09:26:08 +0200 (CEST) (envelope-from riccardo@righi.ml.org) Date: Fri, 18 Jun 1999 09:26:06 +0200 (CEST) From: Riccardo Veraldi To: freebsd-questions@freebsd.org Subject: problem: reading from bpf interface 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 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. thanks Rick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message