--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/Tc3IKky1OKo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/3eb8912b-78f8-4d1e-9ec4-e332237a6975%40googlegroups.com.
Which specific part of the LTE module need to be modified, I have similar setup but anytime the transmitting UE sends a packet nothing is received at the receiving UE. Must we configure a pgw for this to be fine, just looking at the possibility where both the UE's and eNB are wirelessly linked.
Thanks.
Ptr<Node> node = myNodes.Get (index_of_the_node);
Ptr<Ipv4> ipv4 = node->GetObject<Ipv4> ();
Ipv4Address addr = ipv4->GetAddress (index, index).GetLocal (); //Modify the indexes to match your needs
or, if you already know the address and you want to statically set it:Ipv4Address addr("7.0.0.1");Now suppose that you want to pass it to the application App, that has an AppHelper:AppHelper.SetAttribute ("IPv4Address", Ipv4AddressValue(addr));then you have to modify the application that receives this address, by adding a new attribute:.AddAttribute ("IPv4Address","Ip Addr passed as attribute",Ipv4AddressValue("7.0.0.1"), //default valueMakeIpv4AddressAccessor (&App::m_ipv4_addr),MakeIpv4AddressChecker ())now in m_ipv4_addr, that is a global variable of type Ipv4Address, you have the address.