]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/tipc/socket.c
tipc: fix bug during lookup of multicast destination nodes
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 12 Jan 2018 19:56:50 +0000 (20:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Jan 2018 19:27:13 +0000 (14:27 -0500)
commite9a034456a8cd766795610aa5065263147e35228
tree96b62322cade6e6ececf3c0153502b7a8e5f949a
parent273c28bc57ca9672f7b70bed764ecdfb964930c8
tipc: fix bug during lookup of multicast destination nodes

In commit 232d07b74a33 ("tipc: improve groupcast scope handling") we
inadvertently broke non-group multicast transmission when changing the
parameter 'domain' to 'scope' in the function
tipc_nametbl_lookup_dst_nodes(). We missed to make the corresponding
change in the calling function, with the result that the lookup always
fails.

A closer anaysis reveals that this parameter is not needed at all.
Non-group multicast is hard coded to use CLUSTER_SCOPE, and in the
current implementation this will be delivered to all matching
destinations except those which are published with NODE_SCOPE on other
nodes. Since such publications never will be visible on the sending node
anyway, it makes no sense to discriminate by scope at all.

We now remove this parameter altogether.

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_table.c
net/tipc/name_table.h
net/tipc/socket.c