summaryrefslogtreecommitdiff
path: root/net/tipc/udp_media.h
diff options
context:
space:
mode:
authorRichard Alpe <richard.alpe@ericsson.com>2016-08-26 10:52:55 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-26 21:38:41 -0700
commitfdb3accc2c15fabc2b687b2819da9167027c61b6 (patch)
treefa1dd5ee0b2520a8d6746960bece90f26a4f7aef /net/tipc/udp_media.h
parentc9b64d492b1fbc732e3a26b284060c949b737bce (diff)
tipc: add the ability to get UDP options via netlink
Add UDP bearer options to netlink bearer get message. This is used by the tipc user space tool to display UDP options. The UDP bearer information is passed using either a sockaddr_in or sockaddr_in6 structs. This means the user space receiver should intermediately store the retrieved data in a large enough struct (sockaddr_strage) before casting to the proper IP version type. Signed-off-by: Richard Alpe <richard.alpe@ericsson.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Acked-by: Ying Xue <ying.xue@windriver.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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/udp_media.h b/net/tipc/udp_media.h
index 4dcb54880aa6..c06326a134db 100644
--- a/net/tipc/udp_media.h
+++ b/net/tipc/udp_media.h
@@ -39,6 +39,7 @@
#define _TIPC_UDP_MEDIA_H
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);
#endif
#endif