From 6ecfc952edf3bb512e8e00cfa69b062aaf01f51b Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Fri, 30 Aug 2013 15:11:48 +0930 Subject: [PATCH] Schedule ack packets in response to neighbour broadcasts --- overlay_packetformats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overlay_packetformats.c b/overlay_packetformats.c index 513fdefe..caf91fd5 100644 --- a/overlay_packetformats.c +++ b/overlay_packetformats.c @@ -470,7 +470,8 @@ int packetOkOverlay(struct overlay_interface *interface,unsigned char *packet, s if (header_valid&HEADER_PROCESS) process_incoming_frame(now, interface, &f, &context); - if (f.next_hop == my_subscriber || f.destination == my_subscriber) + // We may need to schedule an ACK / NACK soon when we receive a payload addressed to us, or broadcast + if (f.next_hop == my_subscriber || f.destination == my_subscriber || !f.destination) link_state_ack_soon(context.sender); }