From a978e9ae224a431948455c8c91ef446d8254cb64 Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Wed, 28 Nov 2012 13:31:52 +1030 Subject: [PATCH] Add place holder for packet sequence numbers --- overlay_packetformats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overlay_packetformats.c b/overlay_packetformats.c index d37a0e81..9b93725b 100644 --- a/overlay_packetformats.c +++ b/overlay_packetformats.c @@ -33,6 +33,7 @@ int overlay_packet_init_header(struct decode_context *context, struct overlay_bu if (overlay_address_append(context, buff, my_subscriber)) return -1; context->sender = my_subscriber; + ob_append_byte(buff,0);//seq return 0; } @@ -208,6 +209,7 @@ int packetOkOverlay(struct overlay_interface *interface,unsigned char *packet, s ob_free(b); RETURN(0); } + int seq = ob_get(b); while(b->position < b->sizeLimit){ context.invalid_addresses=0;