Hello I'm working on a project, that i want to access aodv routing table from RECVCTS function in mac-802.11.cc. After that I want to change some field of the entry of table. so I added "aodv/aodv_rtable.h" to mac-802.11 header and tried this in cc file :
void Mac802_11::recvCTS(Packet *p) { .... aodv_rtable* rtable; aodv_rt_entry* rt; rt = rtable->rt_lookup(cf->cf_transmitter); ..... } But rtable is a null object, so it causes segmentation fault. What should i do to access the route table ? Thanks in advance for your help. ______________________________________________________ Alireza Shamsoshoara, M.Sc. Faculty of Electrical and Computer Engineering (ECE) K.N.Toosi University of Technology Tehran, IRAN.