mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Ignore invalid community when not received from supernode
The packet may be received from a multicast registration from a local peer. Fixes #107
This commit is contained in:
parent
381c795af5
commit
59011308b2
|
@ -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");
|
||||
}
|
||||
|
||||
/* ************************************** */
|
||||
|
|
Loading…
Reference in New Issue
Block a user