[ns] invalid _AODV packet type
sarym binome
binome_ini at hotmail.com
Fri Mar 6 11:01:15 PST 2009
hello
i introduce a new packet in AODV protocol
#define AODVTYPE_HELLO1 0x12
and i create a functions (sendhello1 and recvhello1) , i use a timer to shedule this task ,
when i run a tcl script, i've got these errors
send hello1
send hello1
format_aodv: invalid _AODV packet type
so i think that a packet is sent twice but when it is received it isn't recognized , cause if it folow the recv function (look at bold lines only)
void
AODV::recvAODV(Packet *p) {
struct hdr_aodv *ah = HDR_AODV(p);
assert(HDR_IP (p)->sport() == RT_PORT);
assert(HDR_IP (p)->dport() == RT_PORT);
/*
* Incoming Packets.
*/
switch(ah->ah_type) {
case AODVTYPE_RREQ:
recvRequest(p);
break;
.......
......
case AODVTYPE_HELLO1:
recvHello1(p);
break;
default:
fprintf(stderr, "Invalid AODV type (%x)\n", ah->ah_type);
exit(1);
}
}
it dosen't take the case AODVTYPE_HELLO1.....it's strange , isn't it????????????????
what about the file CMUtrace , must i change it ??? to avoid this error?
cause when i change the message fprintf(stderr, "Invalid AODV type (%x)\n", ah->ah_type); to fprintf(stderr, " may be here (%x)\n", ah->ah_type);
i had exactly the first error message format_aodv: invalid _AODV packet type
i find that the message was not from this procedure . i'm really surprised!!!
somebody help me please!
best regards
Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger, c'est gratuit !
_________________________________________________________________
Découvrez toutes les possibilités de communication avec vos proches
http://www.microsoft.com/windows/windowslive/default.aspx
More information about the Ns-users
mailing list