mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
c9b64d492b
commit
fdb3accc2c
4 changed files with 72 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue