summaryrefslogtreecommitdiff
path: root/net/tipc/net.h
diff options
context:
space:
mode:
authorJohn Rutherford <john.rutherford@dektech.com.au>2019-12-19 16:03:57 +1100
committerDavid S. Miller <davem@davemloft.net>2019-12-20 21:18:42 -0800
commite1b5e598e5a51b453328879682b178b4acc15105 (patch)
treee51c00c3d4429f0509f38efd0a6c7935dd19dd51 /net/tipc/net.h
parent17338900ccfd490242f460d8190dd9610b496601 (diff)
tipc: make legacy address flag readable over netlink
To enable iproute2/tipc to generate backwards compatible printouts and validate command parameters for nodes using a <z.c.n> node address, it needs to be able to read the legacy address flag from the kernel. The legacy address flag records the way in which the node identity was originally specified. The legacy address flag is requested by the netlink message TIPC_NL_ADDR_LEGACY_GET. If the flag is set the attribute TIPC_NLA_NET_ADDR_LEGACY is set in the return message. Signed-off-by: John Rutherford <john.rutherford@dektech.com.au> Acked-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/net.h')
-rw-r--r--net/tipc/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/tipc/net.h b/net/tipc/net.h
index b7f2e364eb99..6740d97c706e 100644
--- a/net/tipc/net.h
+++ b/net/tipc/net.h
@@ -47,5 +47,6 @@ void tipc_net_stop(struct net *net);
int tipc_nl_net_dump(struct sk_buff *skb, struct netlink_callback *cb);
int tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info);
int __tipc_nl_net_set(struct sk_buff *skb, struct genl_info *info);
+int tipc_nl_net_addr_legacy_get(struct sk_buff *skb, struct genl_info *info);
#endif