• Leigh B. Stoller's avatar
    Add variable netmask support to the parser. You can now do this in · 7d524fde
    Leigh B. Stoller authored
    your NS file:
    
    	tb-set-netmask $lan0  "255.255.240.0"
    	tb-set-netmask $link0 "255.255.255.248"
    	tb-set-netmask $link1 "255.255.255.240"
    
    Yep, more rope for the user to hang herself with. Notes:
    
    * You are restricted to 255.255.XXX.XXX. I did not see a reason to
      allow the user that much rope.
    
    * get_subnet can handle 10 or 192.168 addresses so that other sites
      can continue to operate without changing to 10 addresses, although
      they will still be able to change the netmask.
    
    * I've changed the handling for widearea networks to use 192.168, but
      I force the netmask to 255.255.255.248 so that we are not restricted
      to just 255 networks (not that it really matters). To avoid possible
      confusion, the user is not allowed to choose their own IPs for
      widearea networks, and I actually set them to 1.1.x.x, and then
      patch it up later. This is to avoid conflict with existing
      experiments where people may have used tb-set-ip in their NS files.
    
    * There are tmcd and staticroutes and image changes that are required
      to make this all work right!
    7d524fde
Name
Last commit
Last update
..
checkpass Loading commit data...
labels Loading commit data...
ns2ir Loading commit data...
plab Loading commit data...
GNUmakefile.in Loading commit data...
README Loading commit data...
assign_wrapper.in Loading commit data...
batch_daemon.in Loading commit data...
batchexp.in Loading commit data...
bwconfig.in Loading commit data...
checkports.in Loading commit data...
console_reset.in Loading commit data...
console_setup.in Loading commit data...
console_setup.proxy.in Loading commit data...
db2ns.in Loading commit data...
endexp.in Loading commit data...
eventsys_control.in Loading commit data...
eventsys_start.in Loading commit data...
exitonwarn.pm Loading commit data...
exports_setup.in Loading commit data...
exports_setup.proxy.in Loading commit data...
frisbeelauncher.in Loading commit data...
idleswap.in Loading commit data...
libaudit.pm.in Loading commit data...
libtbsetup.pm Loading commit data...
libtestbed.pm.in Loading commit data...
mkexpdir.in Loading commit data...
mkgroup.in Loading commit data...
mkproj.in Loading commit data...
named_setup.in Loading commit data...
newnode_reboot.in Loading commit data...
node_control.in Loading commit data...
node_reboot.in Loading commit data...
node_update.in Loading commit data...
nscheck.in Loading commit data...
os_load.in Loading commit data...
os_select.in Loading commit data...
os_setup.in Loading commit data...
portstats.in Loading commit data...
power.in Loading commit data...
power_rpc27.pm.in Loading commit data...
ptopgen.in Loading commit data...
reload_daemon.in Loading commit data...
resetvlans.in Loading commit data...
rmgroup.in Loading commit data...
rmproj.in Loading commit data...
rmuser.in Loading commit data...
routecalc.cc Loading commit data...
savelogs.in Loading commit data...
sched_reload.in Loading commit data...
sched_reserve.in Loading commit data...
setgroups.in Loading commit data...
sfskey_update.in Loading commit data...
sfskey_update.proxy.in Loading commit data...
snmpit.in Loading commit data...
snmpit_apc.pm Loading commit data...
snmpit_cisco.pm Loading commit data...
snmpit_cisco_stack.pm Loading commit data...
snmpit_doc.txt Loading commit data...
snmpit_intel.pm Loading commit data...
snmpit_intel_stack.pm Loading commit data...
snmpit_lib.pm Loading commit data...
spewlogfile.in Loading commit data...
startexp.in Loading commit data...
staticroutes.in Loading commit data...
swapexp.in Loading commit data...
switchmac.in Loading commit data...
tbend.in Loading commit data...
tbprerun.in Loading commit data...
tbreport.in Loading commit data...
tbresize.in Loading commit data...
tbrestart.in Loading commit data...
tbswap.in Loading commit data...
vnode_setup.in Loading commit data...
wanassign.in Loading commit data...
wanlinkinfo.in Loading commit data...
wanlinksolve.cc Loading commit data...
webbatchexp.in Loading commit data...
webdelay_config.in Loading commit data...
webendexp.in Loading commit data...
webidleswap.in Loading commit data...
webmkgroup.in Loading commit data...
webmkproj.in Loading commit data...
webnodecontrol.in Loading commit data...
webnodereboot.in Loading commit data...
webnodeupdate.in Loading commit data...
webnscheck.in Loading commit data...
webreport.in Loading commit data...
webrmgroup.in Loading commit data...
webrmuser.in Loading commit data...
websetgroups.in Loading commit data...
webstartexp.in Loading commit data...
webswapexp.in Loading commit data...