[ns] signed & unsigned problem(mangal)

mangal thakur thakur.kone at gmail.com
Wed Feb 10 11:03:22 PST 2010


if i put the following code in the recvAODV(packet *p)
function in aodv.cc file


if ( (u_int32_t)ih->saddr() == index) {
forward((bhaodv_rt_entry*) 0, p, NO_DELAY); }
else {
drop(p, DROP_RTR_ROUTE_LOOP); }


than it gives following warning
warning: comparison between signed and unsigned integer expressions
why it occur and how could i solve this problem


More information about the Ns-users mailing list