From 59011308b2aa7074b592d5e975bf68ac00e01eac Mon Sep 17 00:00:00 2001 From: emanuele-f Date: Wed, 22 May 2019 22:40:42 +0200 Subject: [PATCH] Ignore invalid community when not received from supernode The packet may be received from a multicast registration from a local peer. Fixes #107 --- edge_utils.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/edge_utils.c b/edge_utils.c index 0a095f3..4a28ff0 100644 --- a/edge_utils.c +++ b/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); return; } /* switch(msg_type) */ - } else /* if (community match) */ - traceEvent(TRACE_WARNING, "Received packet with invalid community"); + } else if(from_supernode) /* if (community match) */ + traceEvent(TRACE_WARNING, "Received packet with unknown community"); + else + traceEvent(TRACE_INFO, "Ignoring packet with unknown community"); } /* ************************************** */