This patch ensures that TIPC's multicast message name lookup
algorithm does individualized scope checking for each published
name it examines. Previously, scope checking was only done for
the first name in a name table publication list, which could
result in incoming multicast messages being delivered to ports
publishing names with "node" scope, or not being delivered to
ports publishing names with "cluster" or "zone" scope.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
if (sseq->lower > upper)
break;
publ = sseq->cluster_list;
- if (publ && (publ->scope <= limit))
+ if (publ)
do {
- if (publ->node == tipc_own_addr)
+ if (publ->scope > limit)
+ /* ignore out-of-scope publication */ ;
+ else if (publ->node == tipc_own_addr)
tipc_port_list_add(dports, publ->ref);
else
res = 1;