]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - net/tipc/link.h
tipc: add sequence number check for link STATE messages
authorJon Maloy <jon.maloy@ericsson.com>
Mon, 9 Jul 2018 23:07:35 +0000 (01:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Jul 2018 06:06:14 +0000 (23:06 -0700)
commit9012de5089560136b849b920ad038b96160ed8f6
tree20261a0c6e074ca936878835b64a04294ca3af52
parente32f55f373217001187ff171e75c5dfbb251f633
tipc: add sequence number check for link STATE messages

Some switch infrastructures produce huge amounts of packet duplicates.
This becomes a problem if those messages are STATE/NACK protocol
messages, causing unnecessary retransmissions of already accepted
packets.

We now introduce a unique sequence number per STATE protocol message
so that duplicates can be identified and ignored. This will also be
useful when tracing such cases, and to avert replay attacks when TIPC
is encrypted.

For compatibility reasons we have to introduce a new capability flag
TIPC_LINK_PROTO_SEQNO to handle this new feature.

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