Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Feb 2000 10:17:20 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        julian@elischer.org (Julian Elischer)
Cc:        myevmenkin@att.com (Yevmenkin Maksim N CSCIO), freebsd-current@FreeBSD.ORG ('freebsd-current@freebsd.org'), freebsd-hackers@FreeBSD.ORG ('freebsd-hackers@freebsd.org')
Subject:   Re: NETGRAPH (proposal. FINAL)
Message-ID:  <200002291817.KAA17413@bubba.whistle.com>
In-Reply-To: <38BC0745.2781E494@elischer.org> from Julian Elischer at "Feb 29, 2000 09:52:05 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer writes:
> > here is url: http://home.earthlink.net/~evmax/ng.tar.gz
> > 
> > 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.
> 
> The idea is however useful and I guess we'll try add it in 
> in the near future...
> What do you think Archie?
> Are we still in code freeze? (I think so).

Yes, I was going to take a look at this after 4.0-REL and then
commit something hopefully soon thereafter..

By the way, if the ethernet chip doesn't support manual source
address then BPF has the same problem that we do.. IMHO, we should
just punt and return an error in this case..

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


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?200002291817.KAA17413>