Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 15:56:49 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        Sebastien Petit <spe@selectbourse.net>
Cc:        net@freebsd.org
Subject:   Re: Netgraph question
Message-ID:  <Pine.BSF.4.21.0204091545260.57350-100000@InterJet.elischer.org>
In-Reply-To: <20020409213955.639A26AA8@spe.homeunix.net>

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


On Wed, 10 Apr 2002, Sebastien Petit wrote:

> On Tuesday 09 April 2002 22:29, Julian Elischer wrote:
> > On Tue, 9 Apr 2002, Sebastien Petit wrote:
> > > Ok julian,
> > >
> > > So I must write loadd with ng_ether for the moment and wait for ng_etf
> > > include in FreeBSD 4.x.
> > > I can modify my code after if ng_etf is available...
> > > Last question, when I write a packet on the lower hook, must I include a
> > > CRC32 field at the end of the ethernet packet ?
> >
> > Actually you don't need etf. As archie pointed out.. you can do your own
> > filtering
> > and pass anything you don't want (e.g. PPPOE) back to the
> > interface.. (the the 'upper' hook (and visa versa))
> >
> > I just MFC'd the etf type BTW.
> >
> > The HARDWARE adds and strips the CRC.. you can ignore it.
> >
> >
> >
> > also: what does `ngctl show xl0:`  show?
> > (while it's supposed to be connected)
> >
> 
> With tcpdump I see bad cksum 0!, so I think I must recompute ip checksum 
> before resending the packet.
> 
there is an algorythm for updating the checksum if you change just one
byte....


see:
http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=236988+241215+/usr/local/www/db/text/1999/freebsd-hackers/19991128.freebsd-hackers


> Thank you for your help julian,
> 
> Sebastien
> -- 
> spe@selectbourse.net
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0204091545260.57350-100000>