]> git.entuzijast.net Git - imunes.git/commit
Refactor the mechanism for creating netgraph-based pseudo
authormarko <marko>
Mon, 7 May 2007 23:06:06 +0000 (23:06 +0000)
committermarko <marko>
Mon, 7 May 2007 23:06:06 +0000 (23:06 +0000)
commitb1369636d3fedc4f69fb492065450706e53f3983
treee9b56e54937cefb67aa16205b298e0ad81120422
parentf1e460f484df22fbfd9d0caec019bb759d363792
Refactor the mechanism for creating netgraph-based pseudo
interfaces (ng_iface and ng_eiface) so that:

a) we don't need a specialized version of ngctl userland utility;
b) that in FreeBSD 7.0 netgraph nodes are not renamed when
   interfaces are assigned to other vimages;

Introduce a helper array "ngnodemap" which provides name mapping
between kernel view of netgraph space, and IMUNES view of node
naming.

When creating links, do not insert a ng_pipe node between the
endpoints, given that ng_pipe is not yet ported to FreeBSD 7.0.
Instead, endpoint nodes are connected back to back, which means
that currently we will be able to construct topologies, but not
emulate link properties and impairments.

Use vimageCleanup instead of cleanupCfg, since it seems that the
later is defunct, at least on FreeBSD 7.0

Bug found by:
Submitted by:
Requested by:
Reviewed by:
Approved by:
Obtained from:
exec.tcl