diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2016-08-26 10:52:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-27 06:38:41 +0200 |
commit | 832629ca5c313e122b22b8e73a6d80f111b1a1ae (patch) | |
tree | d493c51cbc2bdf880e452f4a21430fbc47ee128e /net/tipc/udp_media.h | |
parent | tipc: add the ability to get UDP options via netlink (diff) | |
download | linux-832629ca5c313e122b22b8e73a6d80f111b1a1ae.tar.xz linux-832629ca5c313e122b22b8e73a6d80f111b1a1ae.zip |
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>
Diffstat (limited to 'net/tipc/udp_media.h')
-rw-r--r-- | net/tipc/udp_media.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/udp_media.h b/net/tipc/udp_media.h index c06326a134db..281bbae87726 100644 --- a/net/tipc/udp_media.h +++ b/net/tipc/udp_media.h @@ -40,6 +40,7 @@ int tipc_udp_nl_bearer_add(struct tipc_bearer *b, struct nlattr *attr); int tipc_udp_nl_add_bearer_data(struct tipc_nl_msg *msg, struct tipc_bearer *b); +int tipc_udp_nl_dump_remoteip(struct sk_buff *skb, struct netlink_callback *cb); #endif #endif |