mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-20 13:43:12 +00:00
fixed bug with decoding ack of selfannouncement frames.
This commit is contained in:
parent
9398f94a22
commit
fcffb58447
@ -269,13 +269,10 @@ int isOverlayPacket(FILE *f,unsigned char *packet,int *ofs,int len)
|
|||||||
int i;
|
int i;
|
||||||
fprintf(f,"%sACK of self-announce\n",indent(8));
|
fprintf(f,"%sACK of self-announce\n",indent(8));
|
||||||
time=0; for(i=0;i<4;i++) time=(time<<8)|frame[frame_ofs++];
|
time=0; for(i=0;i<4;i++) time=(time<<8)|frame[frame_ofs++];
|
||||||
fprintf(f,"%sObservation time : %10lldsecs (0x%08llx)\n",indent(10),time,time);
|
fprintf(f,"%sObservation time : %10lld secs (0x%08llx)\n",
|
||||||
while(frame_ofs<frame_len) {
|
indent(10),time,time);
|
||||||
int iface=frame[frame_ofs++];
|
int iface=frame[frame_ofs++];
|
||||||
int score=frame[frame_ofs++];
|
fprintf(f,"%sSender Interface : %d\n",indent(10),iface);
|
||||||
fprintf(f,"%sinterface #%d reachability score: %d (0x%02x)\n",
|
|
||||||
indent(12),iface,score,score);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x50: /* rhizome advertisement */
|
case 0x50: /* rhizome advertisement */
|
||||||
|
Loading…
Reference in New Issue
Block a user