diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2016-08-26 10:52:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-26 21:38:41 -0700 |
commit | fdb3accc2c15fabc2b687b2819da9167027c61b6 (patch) | |
tree | fa1dd5ee0b2520a8d6746960bece90f26a4f7aef /include/uapi/linux/tipc_netlink.h | |
parent | c9b64d492b1fbc732e3a26b284060c949b737bce (diff) | |
download | linux-stable-fdb3accc2c15fabc2b687b2819da9167027c61b6.tar.gz linux-stable-fdb3accc2c15fabc2b687b2819da9167027c61b6.tar.bz2 linux-stable-fdb3accc2c15fabc2b687b2819da9167027c61b6.zip |
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 'include/uapi/linux/tipc_netlink.h')
-rw-r--r-- | include/uapi/linux/tipc_netlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/tipc_netlink.h b/include/uapi/linux/tipc_netlink.h index b15664c36219..f9edd20fe9ba 100644 --- a/include/uapi/linux/tipc_netlink.h +++ b/include/uapi/linux/tipc_netlink.h @@ -61,6 +61,7 @@ enum { TIPC_NL_MON_PEER_GET, TIPC_NL_PEER_REMOVE, TIPC_NL_BEARER_ADD, + TIPC_NL_UDP_GET_REMOTEIP, __TIPC_NL_CMD_MAX, TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 1 @@ -100,6 +101,7 @@ enum { TIPC_NLA_UDP_UNSPEC, TIPC_NLA_UDP_LOCAL, /* sockaddr_storage */ TIPC_NLA_UDP_REMOTE, /* sockaddr_storage */ + TIPC_NLA_UDP_MULTI_REMOTEIP, /* flag */ __TIPC_NLA_UDP_MAX, TIPC_NLA_UDP_MAX = __TIPC_NLA_UDP_MAX - 1 |