diff options
author | Jon Paul Maloy <jon.maloy@ericsson.com> | 2016-05-02 18:58:46 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-05-03 22:51:15 +0300 |
commit | 60020e1857042387cdcd4cd6680a9e5496213379 (patch) | |
tree | b0cff474233a2bd0f37734942f23afd3213486ad /net/tipc/node.h | |
parent | 7c8bcfb1255fe9d929c227d67bdcd84430fd200b (diff) | |
download | linux-60020e1857042387cdcd4cd6680a9e5496213379.tar.xz |
tipc: propagate peer node capabilities to socket layer
During neighbor discovery, nodes advertise their capabilities as a bit
map in a dedicated 16-bit field in the discovery message header. This
bit map has so far only be stored in the node structure on the peer
nodes, but we now see the need to keep a copy even in the socket
structure.
This commit adds this functionality.
Acked-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r-- | net/tipc/node.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h index f39d9d06e8bb..18237684ffc4 100644 --- a/net/tipc/node.h +++ b/net/tipc/node.h @@ -70,6 +70,7 @@ void tipc_node_broadcast(struct net *net, struct sk_buff *skb); int tipc_node_add_conn(struct net *net, u32 dnode, u32 port, u32 peer_port); void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port); int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel); +u16 tipc_node_get_capabilities(struct net *net, u32 addr); int tipc_nl_node_dump(struct sk_buff *skb, struct netlink_callback *cb); int tipc_nl_node_dump_link(struct sk_buff *skb, struct netlink_callback *cb); int tipc_nl_node_reset_link_stats(struct sk_buff *skb, struct genl_info *info); |