Browse Source

made supernode ignore own registration attempts to allow unified configuration (command line-provided supernodes) of federated supernodes (#970)

pull/974/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
5f60a6b333
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/sn_utils.c

5
src/sn_utils.c

@ -1938,6 +1938,11 @@ static int process_udp (n2n_sn_t * sss,
} }
} }
if(!memcmp(reg.edgeMac, sss->mac_addr, sizeof(n2n_mac_t))) {
traceEvent(TRACE_DEBUG, "Rx REGISTER_SUPER from self, ignoring");
return -1;
}
cmn2.ttl = N2N_DEFAULT_TTL; cmn2.ttl = N2N_DEFAULT_TTL;
cmn2.pc = n2n_register_super_ack; cmn2.pc = n2n_register_super_ack;
cmn2.flags = N2N_FLAGS_SOCKET | N2N_FLAGS_FROM_SUPERNODE; cmn2.flags = N2N_FLAGS_SOCKET | N2N_FLAGS_FROM_SUPERNODE;

Loading…
Cancel
Save