Hello all: Recently i look through the routing.cc and come across a problem . Anyone who knows something , please tell me, thank you very much. In my opinion, the routing.cc should offer the function like this: Given the Routeid 'id' which defined in routing.hh, and calculates the path between source datapath and destination datapath which defined in struct 'Routeid', then accroding to this calculated path, encapsulate to openflow message(conbtroller/switch message) for each datapath on the path , send to openflow switchs and write into flow table entry. But i am not sure which function(s) offer(s) the function of calculating path.Maybe it is get_route() function defined in routing.cc, here is the codes: bool Routing_module::get_route(const RouteId& id, RoutePtr& route) const { RouteMap::const_iterator rte = shortest.find(id); // return a const element reference to this key 'id' in hash_map // if (rte == shortest.end()) { if (id.src == id.dst) { route.reset(new Route()); route->id = id; return true; } return false; } route = rte->second; return true; } Does the element refer to the key "id" in hash_map contain the path, which i accroding to this line 'route = rte->second'. Is it right? If you know, please help me, thank you very much again~ Best Wishes Wang Jian Wednesday, Junuary 4, 2012
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev