Browse Source

Ignore invalid community when not received from supernode

The packet may be received from a multicast registration from a local peer.

Fixes #107
pull/110/head
emanuele-f 6 years ago
parent
commit
59011308b2
  1. 6
      edge_utils.c

6
edge_utils.c

@ -1455,8 +1455,10 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) {
traceEvent(TRACE_WARNING, "Unable to handle packet type %d: ignored", (signed int)msg_type); traceEvent(TRACE_WARNING, "Unable to handle packet type %d: ignored", (signed int)msg_type);
return; return;
} /* switch(msg_type) */ } /* switch(msg_type) */
} else /* if (community match) */ } else if(from_supernode) /* if (community match) */
traceEvent(TRACE_WARNING, "Received packet with invalid community"); traceEvent(TRACE_WARNING, "Received packet with unknown community");
else
traceEvent(TRACE_INFO, "Ignoring packet with unknown community");
} }
/* ************************************** */ /* ************************************** */

Loading…
Cancel
Save