From owner-freebsd-hackers Sat May 2 07:32:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29906 for freebsd-hackers-outgoing; Sat, 2 May 1998 07:32:15 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA29869 for ; Sat, 2 May 1998 07:32:03 -0700 (PDT) (envelope-from ernie!bert.kts.org!hm@ppp.net) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0yVdKc-002ZjeC; Sat, 2 May 98 16:32 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Sat, 2 May 1998 16:08:03 +0200 (CEST) (Smail-3.2.0.91 1997-Jan-14 #3 built 1998-Feb-14) Received: by bert.kts.org via sendmail with stdio id for freebsd-hackers@freebsd.org; Sat, 2 May 1998 16:04:25 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #7 built 1997-Jul-4) Message-Id: From: hm@kts.org (Hellmuth Michaelis) Subject: bpf needs in network drivers To: freebsd-hackers@FreeBSD.ORG (FreeBSD Hackers) Date: Sat, 2 May 1998 16:04:25 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, in case i do a bpfattach(&sc->sc_if, DLT_NULL, sizeof(u_int)); in a network (IP over ISDN, not PPP!) device driver, i obviously have to prepend sizeof(u_int) to each mbuf i sent to bpf, is this correct ? What do i have to put into this sizeof(u_int) (for bpf/tcpdump) ? Is it possible to do a bpfattach(&sc->sc_if, DLT_NULL, 0); and prepend nothing ? hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe "Those who can, do. Those who can't, talk. And those who can't talk, talk about talking." (B. Shaw) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message