-# $Id: exec.tcl,v 1.64 2007/11/02 00:21:04 marko Exp $
+# $Id: exec.tcl,v 1.65 2007/12/01 00:56:46 marko Exp $
# Copyright 2004, 2005 University of Zagreb, Croatia. All rights reserved.
#
# * name -- the name of the new interface
#****
proc createIfc { eid type hook } {
- catch { exec printf "mkpeer eiface ether ether \n show .ether" | vimage $eid ngctl -f - } nglist
+ catch { exec printf "mkpeer $type $hook $hook \n show .$hook" | vimage $eid ngctl -f - } nglist
return [lindex $nglist 1]
}
nexec vimage $eid ngctl mkpeer $ifid: cisco inet inet
nexec vimage $eid ngctl connect $ifid: $ifid:inet inet6 inet6
nexec vimage $eid ngctl msg $ifid: broadcast
- nexec vimage $eid ngctl name $ifid:inet hdlc$ifnum\@$node_id
+ nexec vimage $eid ngctl name $ifid:inet hdlc$ifnum\@$node
nexec vimage $eid vimage -i $node $ifid $ifc
- nexec vimage $node_id ifconfig $ifid name $ifc
- set ngnodemap($ifc@$node_id) $ifid
+ set ngnodemap(hdlc$ifnum@$node_id) hdlc$ifnum\@$node
}
}
}
catch { nexec kldload ng_ether }
catch { nexec kldload ng_iface }
catch { nexec kldload ng_eiface }
+ catch { nexec kldload ng_cisco }
catch { nexec kldload ng_pipe }
catch { nexec kldload ng_hub }
catch { nexec kldload ng_bridge }