thanks
manjinder
--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
(disclaimer: I'm saying this out of memory)
In your simulation script, you probably have an
Ipv4InterfaceContainer. You can iterate through it to get (Ptr<Ipv4>,
interface_index) tuples. With the first entity in the tuple (I'll call
it ipv4), do:
if (ipv4->GetInterfaceForAddress (whatever_address_you_want) != -1)
Ptr<node> node_pointer_you_are_looking_for = ipv4->GetObject<Node> ()
But in any case, it's easiest (and fun) to go through the respective
.h files to figure out the APIs. You can also see the doxygen docs.
>>> For more options, visit this group at
>>> http://groups.google.com/group/ns-3-users?hl=en.
>>>
>>
>>
>>
>> --
>> Lalith Suresh
>> www.lalith.in
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ns-3-users" group.
>> To post to this group, send email to ns-3-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> For more options, visit this group at
>> http://groups.google.com/group/ns-3-users?hl=en.
>
>
>
> --
> M P Singh
> +1 613 422 8074
> +1 613 600 3029
>
> --
> You received this message because you are subscribed to the Google Groups
> "ns-3-users" group.
> To post to this group, send email to ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/ns-3-users?hl=en.
>
--
Lalith Suresh
www.lalith.in
Hello All,I have question somehow related to the previous discussion, I have a received packet and I would like to know the IPv4 of the node that sent this packet