Added decoding of node announcements.

This commit is contained in:
gardners 2012-04-14 03:18:44 +09:30
parent d5cd28b1b3
commit 9f88a8ae47

View File

@ -395,11 +395,23 @@ int isOverlayPacket(FILE *f,unsigned char *packet,int *ofs,int len)
indent(12),lat0,long0,lat1,long1);
}
}
break;
case 0x70: /* node announce */
{
int i;
fprintf(f,"%sNode reachability announcment(s):\n",indent(8));
for(i=0;i<frame_len;i+=8)
fprintf(f,"%s %02X%02X%02X%02X%02X%02X* best link score = %d, via %d gateways\n",
indent(10),
frame[i+0],frame[i+1],frame[i+2],frame[i+3],
frame[i+4],frame[i+5],
frame[i+6],frame[i+7]);
}
break;
case 0x30: /* MDP frame */
case 0x40: /* voice frame */
case 0x60: /* please explain (request for expansion of an abbreviated address) */
case 0x70: /* node announce */
default:
{
/* Reserved values */