Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 1998 11:08:01 +0200 (METDST)
From:      hm@hcs.de (Hellmuth Michaelis)
To:        freebsd-isdn@FreeBSD.ORG (ISDN Mailinglist)
Subject:   bpf_mtap() changes ? (was Re: something new in current ....)
Message-ID:  <m0z1ogr-0000f6C@hcswork.hcs.de>
In-Reply-To: <19980730075540.A26394@klemm.gtn.com> from Andreas Klemm at "Jul 30, 98 07:55:40 am"

next in thread | previous in thread | raw e-mail | index | archive | help

> > 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 *)&af;
	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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0z1ogr-0000f6C>