Browse Source

Little improvement

pull/128/head
emanuele-f 6 years ago
parent
commit
4eacea7d57
  1. 4
      edge_utils.c
  2. 2
      sn.c

4
edge_utils.c

@ -1503,6 +1503,9 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) {
*/
traceEvent(TRACE_DEBUG, "Got P2P register");
find_and_remove_peer(&eee->pending_peers, reg.srcMac);
/* NOTE: only ACK to peers */
send_register_ack(eee, orig_sender, &reg);
}
traceEvent(TRACE_INFO, "Rx REGISTER src=%s dst=%s from peer %s (%s)",
@ -1512,7 +1515,6 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) {
sock_to_cstr(sockbuf2, orig_sender));
check_peer_registration_needed(eee, from_supernode, reg.srcMac, orig_sender);
send_register_ack(eee, orig_sender, &reg);
break;
}
case MSG_TYPE_REGISTER_ACK:

2
sn.c

@ -706,6 +706,8 @@ static int process_udp(n2n_sn_t * sss,
traceEvent( TRACE_DEBUG, "Ignoring QUERY_PEER for unknown edge %s",
macaddr_str( mac_buf, query.targetMac ) );
}
break;
}
default:
/* Not a known message type */

Loading…
Cancel
Save