netgraph questions on ng_tee, ng_iface, ng_socket

Andrew Riabtsev resident at b-o.ru
Mon Jan 19 04:27:09 PST 2004


Hi all,

Monday, January 19, 2004, 12:34:25 PM, you wrote:


DN> hey all,

skiped

DN> i need some understanding on what exactly ng_iface achieves, as it makes a
DN> reference to the hook inet being connected to something. however,
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 ?

DN> any pointers/explanations would sure help a lot. thanx in advance.

Connecting ng_iface:inet and ng_ether:upper/lower do nothing, well, it
do something but not what you are waiting for, i think.

As wrotes in man ng_iface:
     This node type supports the following hooks:
     inet    Transmission and reception of IP packets.

ng_iface works with IP-packets, but ng_ether works with ethernet
frames, so connecting it together require at least transformation
module between IP-packets and ether-frames.
-- 

 Andrew                            mailto:resident at b-o.ru



More information about the freebsd-net mailing list