netgraph questions on ng_tee, ng_iface, ng_socket

Andrew Riabtsev resident at b-o.ru
Tue Jan 20 00:47:28 PST 2004


Hi, Dinesh,

Monday, January 19, 2004, 8:29:23 PM, you wrote:


DN> On Mon, 19 Jan 2004, Andrew Riabtsev wrote:

>> DN> connecting the ng_iface hook inet to ng_ether's upper or lower doesnt make
>> DN> any sense because ng_ether itself does not do an encasulation of the IP
>> DN> packet into an ethernet frame. or am i wrong here, and just configuring it
>> DN> wrongly ?
>>
>> Connecting ng_iface:inet and ng_ether:upper/lower do nothing, well, it
>> do something but not what you are waiting for, i think.

DN> i know, hence was asking if there was something i could do, even if it
DN> meant writing an extension to ng_ether to create a new netgraph type.

You could try to write netgraph module that makes same thing with
packets and frame as functions ether_(input/output) in
net/if_ethersubr.c. Thats all that come in my mind.

-- 
 Andrew                            mailto:resident at b-o.ru



More information about the freebsd-net mailing list