Hi Konstantinos i added a parameter to the field in reserved space of hello message header so i could get it when a node send a hello message. when a node want to send the hello message, i initialize the parameter with proper value. when a node receive a hello packet, i need that parameter so i want to store it as feature of it's 1 hop neighbor. i think i need to schedule an event that starts when a hello packet is received and after that i store that parameter in my variable but i study Simulator::Schedule and i can't find a way to run whenever a hello message is received because this class need to specify the exact time to run that event but i want to run it on this condition(hello packet reception). there is another way to do it by listening to a socket which hello packet is sent but problem is that i don't have access to that socket. the socket is declared in olsr routing protocol class. this way i need to know every node special socket which send hello packet thorough it. |