route into netgraph?

Gleb Smirnoff glebius at cell.sick.ru
Sun Apr 18 17:37:44 PDT 2004


  Dear networkers,

  does anyone can give me a hint? I want to inject some traffic with
a specific destination to netgraph.
  For example I want to route all traffic with dst 10.0.0.0/8 to my
netgraph node, whereever it came from - came on interface or
generated locally.

  I see only one way to do this - divert it with ipfw to ng_ksocket.

But, it'll be nice to use smth like:

  route add 10.0.0.0/8 -iface ng0

and receive packets on ng0's inet hook.

Any other ideas?

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-net mailing list