From 236b9bf4c71b3ac30c2285502fbfaa179cfc4154 Mon Sep 17 00:00:00 2001 From: Logan oos Even <46396513+Logan007@users.noreply.github.com> Date: Tue, 7 Sep 2021 01:36:51 +0545 Subject: [PATCH] fixed missing gratuitous arp (#769) --- src/edge_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/edge_utils.c b/src/edge_utils.c index 591dcc0..e5215eb 100644 --- a/src/edge_utils.c +++ b/src/edge_utils.c @@ -2606,6 +2606,9 @@ void process_udp (n2n_edge_t *eee, const struct sockaddr_in *sender_sock, const } } + eee->sn_wait = 0; + reset_sup_attempts(eee); /* refresh because we got a response */ + // update last_sup only on 'real' REGISTER_SUPER_ACKs, not on bootstrap ones (own MAC address // still null_mac) this allows reliable in/out PACKET drop if not really registered with a supernode yet if(!is_null_mac(eee->device.mac_addr)) { @@ -2618,9 +2621,6 @@ void process_udp (n2n_edge_t *eee, const struct sockaddr_in *sender_sock, const eee->last_sup = now; } - eee->sn_wait = 0; - reset_sup_attempts(eee); /* refresh because we got a response */ - // NOTE: the register_interval should be chosen by the edge node based on its NAT configuration. // eee->conf.register_interval = ra.lifetime;