[ns] [DSR] How to check if a packet contains application-level data...
Salvo Danilo Giuffrida
giuffsalvo at gmail.com
Thu Mar 12 08:52:38 PDT 2009
Hello, if I have an SRPacket, how can I check that it contains, other
than some possible Route Request/Reply/Error in its DSR Options
Header, some kind of application-level data in its payload? Should I
check that p.pkt->datalen()>0, or does it take into consideration also
the size of the header?
Basically, I need to do certain thing only if a node receives a DSR
packet, which might contain Route Request/Reply/Errors piggybacked in
its header, but it must also contain some data in the payload of the
IP packet.
Thanks a lot
More information about the Ns-users
mailing list