diff options
Diffstat (limited to 'net/tipc/netlink.c')
-rw-r--r-- | net/tipc/netlink.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/net/tipc/netlink.c b/net/tipc/netlink.c index 9bc64aaff466..ea168b889caa 100644 --- a/net/tipc/netlink.c +++ b/net/tipc/netlink.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "config.h" | 38 | #include "config.h" |
39 | #include "socket.h" | 39 | #include "socket.h" |
40 | #include "bearer.h" | 40 | #include "bearer.h" |
41 | #include "link.h" | ||
41 | #include <net/genetlink.h> | 42 | #include <net/genetlink.h> |
42 | 43 | ||
43 | static int handle_cmd(struct sk_buff *skb, struct genl_info *info) | 44 | static int handle_cmd(struct sk_buff *skb, struct genl_info *info) |
@@ -74,7 +75,8 @@ static const struct nla_policy tipc_nl_policy[TIPC_NLA_MAX + 1] = { | |||
74 | [TIPC_NLA_UNSPEC] = { .type = NLA_UNSPEC, }, | 75 | [TIPC_NLA_UNSPEC] = { .type = NLA_UNSPEC, }, |
75 | [TIPC_NLA_BEARER] = { .type = NLA_NESTED, }, | 76 | [TIPC_NLA_BEARER] = { .type = NLA_NESTED, }, |
76 | [TIPC_NLA_SOCK] = { .type = NLA_NESTED, }, | 77 | [TIPC_NLA_SOCK] = { .type = NLA_NESTED, }, |
77 | [TIPC_NLA_PUBL] = { .type = NLA_NESTED, } | 78 | [TIPC_NLA_PUBL] = { .type = NLA_NESTED, }, |
79 | [TIPC_NLA_LINK] = { .type = NLA_NESTED, }, | ||
78 | }; | 80 | }; |
79 | 81 | ||
80 | /* Legacy ASCII API */ | 82 | /* Legacy ASCII API */ |
@@ -136,6 +138,12 @@ static const struct genl_ops tipc_genl_v2_ops[] = { | |||
136 | .cmd = TIPC_NL_PUBL_GET, | 138 | .cmd = TIPC_NL_PUBL_GET, |
137 | .dumpit = tipc_nl_publ_dump, | 139 | .dumpit = tipc_nl_publ_dump, |
138 | .policy = tipc_nl_policy, | 140 | .policy = tipc_nl_policy, |
141 | }, | ||
142 | { | ||
143 | .cmd = TIPC_NL_LINK_GET, | ||
144 | .doit = tipc_nl_link_get, | ||
145 | .dumpit = tipc_nl_link_dump, | ||
146 | .policy = tipc_nl_policy, | ||
139 | } | 147 | } |
140 | }; | 148 | }; |
141 | 149 | ||