From owner-freebsd-net Tue Apr 9 16: 0:22 2002 Delivered-To: freebsd-net@freebsd.org Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by hub.freebsd.org (Postfix) with ESMTP id 74BFD37B417 for ; Tue, 9 Apr 2002 16:00:13 -0700 (PDT) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc52.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020409230013.WFWG1901.rwcrmhc52.attbi.com@InterJet.elischer.org>; Tue, 9 Apr 2002 23:00:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA58470; Tue, 9 Apr 2002 15:56:49 -0700 (PDT) Date: Tue, 9 Apr 2002 15:56:49 -0700 (PDT) From: Julian Elischer To: Sebastien Petit Cc: net@freebsd.org Subject: Re: Netgraph question In-Reply-To: <20020409213955.639A26AA8@spe.homeunix.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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