]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: add SYN bit to connection setup messages
authorJon Maloy <jon.maloy@ericsson.com>
Fri, 28 Sep 2018 18:23:21 +0000 (20:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Sep 2018 18:24:22 +0000 (11:24 -0700)
commite0498a5aecbb6f65cf95185000dc782e9e350ec8
treeefe153ded226c9b0046ff7612fa90fb0883e93b2
parenta3ba9b4b370abbe8605ce39b91a7af15fcd7c49e
tipc: add SYN bit to connection setup messages

Messages intended for intitating a connection are currently
indistinguishable from regular datagram messages. The TIPC
protocol specification defines bit 17 in word 0 as a SYN bit
to allow sanity check of such messages in the listening socket,
but this has so far never been implemented.

We do that in this commit.

Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/msg.h
net/tipc/node.h
net/tipc/socket.c