From owner-freebsd-isdn Thu Jul 30 02:06:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA04924 for freebsd-isdn-outgoing; Thu, 30 Jul 1998 02:06:06 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id CAA04868 for ; Thu, 30 Jul 1998 02:05:58 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1711 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Thu, 30 Jul 1998 11:05:37 +0200 (METDST) (Smail-3.2.0.101 1997-Dec-17 #2 built 1998-Jun-26) Received: by hcswork.hcs.de (Smail3.1.29.0 #12) id m0z1ogr-0000f6C; Thu, 30 Jul 98 11:08 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: bpf_mtap() changes ? (was Re: something new in current ....) In-Reply-To: <19980730075540.A26394@klemm.gtn.com> from Andreas Klemm at "Jul 30, 98 07:55:40 am" To: freebsd-isdn@FreeBSD.ORG (ISDN Mailinglist) Date: Thu, 30 Jul 1998 11:08:01 +0200 (METDST) Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > in i4b/driver/i4b_isppp.c, around line 600, there's some code to prepend > > the address family as a four byte field. > > > > this seems to be unnecessary for -CURRENT. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Can someone with -current bpf knowledge confirm this ? Currently the code looks like this, the attach is done as: bpfattach(&sc->sc_if, DLT_NULL, sizeof(u_int)); and the bpf_mtap call in question currently looks like this: struct mbuf mm; u_int af = AF_INET; mm.m_next = m; mm.m_len = 4; mm.m_data = (char *)⁡ bpf_mtap(&sc->sc_if, &mm); hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm@hcs.de 22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message