mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 18:56:25 +00:00
added missing break after rhizome packet process call.
This commit is contained in:
parent
1240c49a92
commit
696850dcbf
@ -99,6 +99,12 @@ int overlayServerMode()
|
|||||||
/* Add all local SIDs to our cache */
|
/* Add all local SIDs to our cache */
|
||||||
int ofs=0;
|
int ofs=0;
|
||||||
while(findHlr(hlr,&ofs,NULL,NULL)) {
|
while(findHlr(hlr,&ofs,NULL,NULL)) {
|
||||||
|
int i;
|
||||||
|
if (debug) {
|
||||||
|
fprintf(stderr,"Adding ");
|
||||||
|
for(i=0;i<SID_SIZE;i++) fprintf(stderr,"%02x",hlr[ofs+4+i]);
|
||||||
|
fprintf(stderr," to list of local addresses.\n");
|
||||||
|
}
|
||||||
overlay_abbreviate_cache_address(&hlr[ofs+4]);
|
overlay_abbreviate_cache_address(&hlr[ofs+4]);
|
||||||
if (nextHlr(hlr,&ofs)) break;
|
if (nextHlr(hlr,&ofs)) break;
|
||||||
}
|
}
|
||||||
@ -274,6 +280,7 @@ int overlay_frame_process(int interface,overlay_frame *f)
|
|||||||
break;
|
break;
|
||||||
case OF_TYPE_RHIZOME_ADVERT:
|
case OF_TYPE_RHIZOME_ADVERT:
|
||||||
overlay_rhizome_saw_advertisements(interface,f,now);
|
overlay_rhizome_saw_advertisements(interface,f,now);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr,"Unsupported f->type=0x%x\n",f->type);
|
fprintf(stderr,"Unsupported f->type=0x%x\n",f->type);
|
||||||
return WHY("Support for that f->type not yet implemented");
|
return WHY("Support for that f->type not yet implemented");
|
||||||
|
Loading…
Reference in New Issue
Block a user