]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: add UDP remoteip dump to netlink API
authorRichard Alpe <richard.alpe@ericsson.com>
Fri, 26 Aug 2016 08:52:56 +0000 (10:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Aug 2016 04:38:41 +0000 (21:38 -0700)
commit73db3d7919948338588c4a9116dc243a079cee99
treed493c51cbc2bdf880e452f4a21430fbc47ee128e
parenta2af3659d117df8b8bbbdffe9096a9cf4881de25
tipc: add UDP remoteip dump to netlink API

When using replicast a UDP bearer can have an arbitrary amount of
remote ip addresses associated with it. This means we cannot simply
add all remote ip addresses to an existing bearer data message as it
might fill the message, leaving us with a truncated message that we
can't safely resume. To handle this we introduce the new netlink
command TIPC_NL_UDP_GET_REMOTEIP. This command is intended to be
called when the bearer data message has the
TIPC_NLA_UDP_MULTI_REMOTEIP flag set, indicating there are more than
one remote ip (replicast).

Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink.c
net/tipc/udp_media.c
net/tipc/udp_media.h