From f0b72955d1d7a917dbc17e9a9a34ab8af70334d5 Mon Sep 17 00:00:00 2001 From: gardners Date: Mon, 14 May 2012 15:44:36 +0930 Subject: [PATCH] preparation for nacks for retransmission. --- serval.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/serval.h b/serval.h index a9c7b343..5044935c 100755 --- a/serval.h +++ b/serval.h @@ -605,9 +605,11 @@ typedef struct overlay_interface { /* How many times have we abbreviated our address since we last announced it in full? */ int ticks_since_sent_full_address; - /* Sequence number of last tick. Sent with announcments to help keep track of the reliability of - getting traffic to/from us. */ + /* sequence number of last packet sent on this interface. + Used to allow NACKs that can request retransmission of recent packets. + */ int sequence_number; + /* XXX need recent packet buffers to support the above */ /* Broadcast address and netmask, if known */ /* We really only case about distinct broadcast addresses on interfaces. @@ -623,7 +625,7 @@ typedef struct overlay_interface { /* If the interface still exists on the local machine. If not, it we keep track of it for a few seconds before purging it, incase of flapping, e.g., due to DHCP renewal */ - int observed; + int observed; } overlay_interface; /* Maximum interface count is rather arbitrary.