All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

  1. 11 Apr, 2001 1 commit
    • Christopher Alfeld's avatar
      Serious restructuring of parsing. · e9b8c412
      Christopher Alfeld authored
      This makes variable dereferencing work as expected.  So:
      
              for {set i 1} {$i <= 8} {incr i} {
                  set c($i) [$ns node]
                  tb-set-node-cmdline $c($i) "BATCH=1 DST_NAME=$c($i)"
              }
      
      will now expand $c($i) to correctly to c-$i.  Similarly:
      
      set node1 [$ns node]
      puts "First node is $node1"
      
      will output:
      
      First node is node1.
      
      Caveat: It assumes that every node and lan will be stored in a
      variable.  So doing something like:
      
      $ns duplex-link [$ns node] [$ns node] 100Mb 150ms DroPTail
      
      while in theory valid and sensible, won't work.
      
      A clean rewrite of the parsing stuff is probably something I should do
      soon.  It needs it to do all the variable munging correctly.
      e9b8c412
  2. 26 Dec, 2000 1 commit
  3. 25 Aug, 2000 1 commit
  4. 12 Jun, 2000 1 commit
  5. 25 May, 2000 1 commit
    • place's avatar
      This is the ns->ir tcl that rob wrote way back in february. · 864e4b61
      place authored
      it handles nodes, links, events(link_up, link_down)
      
      it will _not_ work for arbitrary ns input files. The problem is that
      an input file might say
      
      set something [$ns some args]
      $something do things
      
      but my code doesn't return anything exciting in the first line.
      I return Node, Link, Event, but if they are expecting an
      Agent/whatever/whatever back, they are out of luck.
      ...and so there isn't anything for the second line to make do things
      ...and it'll break.
      864e4b61