is it possible to get the position of
the receiving node in the trace-sink function connected to the "rx" trace-source of the sink-application?
More in detail i have the sink function:
void
pckRx(Ptr<const Packet> pkt, const Address &addr)
{
...
}
which is connected to the "rx" trace source of the sink-application in this way:
Config::ConnectWithoutContext("/NodeList/*/ApplicationList/*/$ns3::PacketSink/Rx",MakeCallback(&pckRx));
I tried to use the attributes pkt and addr but they are defined "const", so how can i get the receiving node position in the trace-sink function?
Is the modification of the "rx" trace source the unique solution?
Thanks in advance,
Andrea