]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: add the ability to get UDP options via netlink
authorRichard Alpe <richard.alpe@ericsson.com>
Fri, 26 Aug 2016 08:52:55 +0000 (10:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Aug 2016 04:38:41 +0000 (21:38 -0700)
commita2af3659d117df8b8bbbdffe9096a9cf4881de25
treefa1dd5ee0b2520a8d6746960bece90f26a4f7aef
parent0fe2d57bb091ecce3a3c0340f184b3eb24c83471
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>
include/uapi/linux/tipc_netlink.h
net/tipc/bearer.c
net/tipc/udp_media.c
net/tipc/udp_media.h