[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] relating packets and nodes!



> hdr_ip *iph=hdr_ip::access(p);
> int src_ = ((iph->src() >> 8) & 0xff);
> int dst_ = ((iph->dst() >> 8) & 0xff);

Just a minor remark, that >> 8 was used to get rid of the port field.
Since in 2.1b6 and later port are separated this is not needed (xref
Agent::initpkt() in agent.cc)