Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 19:03:53 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Julian Elischer <julian@elischer.org>
Cc:        "Yevmenkin, Maksim N, CSCIO" <myevmenkin@att.com>, "'freebsd-current@freebsd.org'" <freebsd-current@FreeBSD.ORG>, "'freebsd-hackers@freebsd.org'" <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: NETGRAPH (proposal. FINAL) 
Message-ID:  <31675.951847433@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 29 Feb 2000 09:52:05 PST." <38BC0745.2781E494@elischer.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <38BC0745.2781E494@elischer.org>, Julian Elischer writes:

>> these are final patches for NETGRAPH.
>> new features:
>> - new hook ``divertin'' allows to put frame back to
>> kernel stack.
>> - new control message allows to set raw mode on
>> ``divert'' hook. raw mode assumes that we have
>> fully prepared frame and we do not have to update
>> ``ether_shost'' field.
>
>This is good in theory, however the intel 82586 ethernet chip
>(and 596 in 586 mode) will overwrite anything you put there anyhow
>as it treats the header specially and fabricates it.
>(unless you are running in some mode that is not usually used).
>I don't know how many other chips do this but it may be misleading
>for the user who sets this on such a chip because the source 
>address he sets will not be put on the wire.

But the driver would know and could issue an error or warning
in that case ?  I guess the packet should be failed with ENOCANDO ?

--
Poul-Henning Kamp             FreeBSD coreteam member
phk@FreeBSD.ORG               "Real hackers run -current on their laptop."
FreeBSD -- It will take a long time before progress goes too far!


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




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