From b4e07a3a3f5b9f959acc934325e145beff430ad0 Mon Sep 17 00:00:00 2001 From: marko Date: Sat, 1 Dec 2007 00:56:46 +0000 Subject: [PATCH] Restore support for "serial" links, which were used by default for connecting router nodes in the old days. This will only work with the most recent kernel code from P4. Note however that with such "serial" links (ng_iface nodes in reality) our dear friend quagga has some issues and refuses to open multicast sockets there, resulting in RIP / OSPF not working in default configurations. Interesting that running routed -P ripv2 works without a glitch on those interfaces. Bug found by: Submitted by: Reviewed by: Approved by: Obtained from: --- exec.tcl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/exec.tcl b/exec.tcl index 1009334..f7eef54 100755 --- a/exec.tcl +++ b/exec.tcl @@ -1,4 +1,4 @@ -# $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. # @@ -228,7 +228,7 @@ proc statline {line} { # * 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] } @@ -284,10 +284,9 @@ proc l3node.instantiate { eid node } { 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 } } } @@ -520,6 +519,7 @@ proc deployCfg {} { 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 } -- 2.39.5