Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2000 16:55:21 -0500
From:      "Yevmenkin, Maksim N, CSCIO" <myevmenkin@att.com>
To:        "'Archie Cobbs'" <archie@whistle.com>
Cc:        "'freebsd-current@freebsd.org'" <freebsd-current@freebsd.org>, "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   RE: NETGRAPH patches (proposal)
Message-ID:  <E598F159668DD311B9C700902799EAF4473396@njb140po01.ems.att.com>

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

> > Here is the description. ng_ether node has two hooks ``divert'' and
> > ``orphan''.
> > It is possible to connect to the one of the hooks and 
> intercept row Ethernet
> > frames. But there is no clean way to intercept frame, do 
> something and
> > return it back to kernel.
> > 
> > This patch provides additional hook ``divertin'' (mmm... 
> name is not good,
> > i think) for each ng_ether node. 
> > 
> > Implementation issues
> > 
> > This will not work for ``orphan'' frames. Since kernel 
> drops it anyway, i
> > decided to leave it as it is. But is is possible to 
> intercept ``orphan''
> > packets, change it, and write back to ``divertin''.
> 
> The "divertin" hook is a useful idea.. after 4.0-REL we can check
> something in based on your patches...
> 

ok. i just have a dumb question. what is the big deal with updating
ether_shost
in ethernet header in ngether_rcvdata. since we are passing raw ethernet
frame,
why should we update ether_shost?  wouldn't it be nice to make it optional? 
just another control message?

Thanks,
emax



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




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