mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 22:17:53 +00:00
Add place holder for packet sequence numbers
This commit is contained in:
parent
17690bab81
commit
a978e9ae22
@ -33,6 +33,7 @@ int overlay_packet_init_header(struct decode_context *context, struct overlay_bu
|
|||||||
if (overlay_address_append(context, buff, my_subscriber))
|
if (overlay_address_append(context, buff, my_subscriber))
|
||||||
return -1;
|
return -1;
|
||||||
context->sender = my_subscriber;
|
context->sender = my_subscriber;
|
||||||
|
ob_append_byte(buff,0);//seq
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,6 +209,7 @@ int packetOkOverlay(struct overlay_interface *interface,unsigned char *packet, s
|
|||||||
ob_free(b);
|
ob_free(b);
|
||||||
RETURN(0);
|
RETURN(0);
|
||||||
}
|
}
|
||||||
|
int seq = ob_get(b);
|
||||||
|
|
||||||
while(b->position < b->sizeLimit){
|
while(b->position < b->sizeLimit){
|
||||||
context.invalid_addresses=0;
|
context.invalid_addresses=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user