[ns] How to get incoming packets source and destination address
obaid abbasi
obaidabbasi at gmail.com
Wed Mar 11 06:04:42 PDT 2009
Hello,
In the receive "recv(Packet* p, Handler*)" function of agent You can easily
access the IP header of a packet.
hdr_ip* iph = hdr_ip::access(p);
You can get source ( iph->src_.addr_) and destination (iph->dst_.addr_)
address.
Regards,
Ubaid Abbasi
INRIA-CNRS Lab (LaBRI)
University Of Bordeaux
France
2009/3/11 muralikrishna g <muralikrishna4g at gmail.com>
>
> hi to all...
>
> i am working with network simulator ns-2.33, here at an intermediate
> node i have to know the incoming packets source and destination
> address. how to get this please help me
>
> thank you
>
>
More information about the Ns-users
mailing list