Hello,

I am trying to create a UDP relay agent in C++ which will simply copy all
incoming packets on an intermediate node and forward them from the outgoing
interface to the next node.

I do not want to create an application which will sit on top of this agent,
i just want only this single UDP agent on certain nodes.

I have run into a problem. In UDPrelay::sent() function of my relay agent i
want to forward all the pkts by using the target_->recv(pkt);

The problem is that when i compile my c++ file and run my simulation i get a
segmentation fault probably because i have not declared a UDPrelay::send()
function in my UDP agent.

How is it possible to send the packet to the next node without using the
target_ method ??

Any help would be extremely appreciated.

Thank you in advanced..

-- 
Nicholas Loulloudes

Postgraduate at Communication Networks and Software.

BSc in Computer Science.

Reply via email to