ns2仿真,请问怎么在aodv.cc里面得到全局路由表route_呢?

请问大家

我在aodv.cc里面的AODV::recvHello(Packet *p)函数里

写了这样一行代码来得到全局路由表

int cost = RouteLogic::adj_[INDEX(nb->nb_addr, rp->rp_dst, 16)].cost;

但是为啥报了这个错呀

./routing/route.h:93: error: object missing in reference to ‘RouteLogic::adj_’

我在做虫洞攻击的检测,是想要分别得到全部节点到一个指定节点的最短路由长度

https://blog.csdn.net/ise_gaoyue1990/article/details/7610522?utm_source=blogxgwz0