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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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; |
|
|