mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
fixed missing gratuitous arp (#769)
This commit is contained in:
parent
b6e865aac7
commit
236b9bf4c7
|
@ -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
|
// 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
|
// 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)) {
|
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->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.
|
// NOTE: the register_interval should be chosen by the edge node based on its NAT configuration.
|
||||||
// eee->conf.register_interval = ra.lifetime;
|
// eee->conf.register_interval = ra.lifetime;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user