]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix wrong publisher node address in link publications
authorJon Maloy <jmaloy@redhat.com>
Mon, 14 Feb 2022 01:38:52 +0000 (20:38 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Feb 2022 05:18:18 +0000 (21:18 -0800)
commita2bb4c7cbab1e1de2df78f40ea0a74ee6a830e0e
treedb657eb5821c4de80deca3f539ede4caa428280b
parent793c690db61c2ebcf331574f219b8e0d04d7af94
tipc: fix wrong publisher node address in link publications

When a link comes up we add its presence to the name table to make it
possible for users to subscribe for link up/down events. However, after
a previous call signature change the binding is wrongly published with
the peer node as publishing node, instead of the own node as it should
be. This has the effect that the command 'tipc name table show' will
list the link binding (service type 2) with node scope and a peer node
as originator, something that obviously is impossible.

We correct this bug here.

Fixes: adb39cb3344e ("tipc: simplify signature of tipc_namtbl_publish()")
Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Link: https://lore.kernel.org/r/20220214013852.2803940-1-jmaloy@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/tipc/node.c