how to find one hop sender node in ns2 dsragent? -
i want find out node in neighborhood sent me packet receiving in recv
function in dsragent
. use following packet header don't have previous address.
hdr_sr *srh = hdr_sr::access(packet); hdr_ip *iph = hdr_ip::access(packet); hdr_cmn *cmh = hdr_cmn::access(packet);
the sending node shall modify 1 of header, otherwise telling impossible. since don't know application looks like, can't tell header appropriate modify.
Comments
Post a Comment