This is a quick fix for (what I think is) a possible bug in NOAH multi-hop extension that I got off the NOAH webpage of Joerg Widmer. I thought this might be of some use to people using this code...
=========================================================== Problem: Multi-hop static routes don't seem to work as described on webpage. Solution: In user's TCL script: In the routing command for NOAH agent, [$node set ragent_] routing $num_routes $node1 $hop1 $node2 $hop2 ..... $node1, $hop1, etc. should all be string IP addresses and not node ID's as seems to be on the webpage. In noah.cc: Lines 303-304 should be table_[i].dst = Address::instance().str2addr(argv[i * 2 + 3]); table_[i].hop = Address::instance().str2addr(argv[i * 2 + 4]); ============================================================ Perhaps the author intended $node1,$hop1 to be numerical IP addresses in the TCL script, but that wasn't obvious to me at least. Thanks! Best regards, Arun
