|
@@ -52,7 +52,8 @@ static const struct nla_policy tipc_nl_policy[TIPC_NLA_MAX + 1] = {
|
|
[TIPC_NLA_MEDIA] = { .type = NLA_NESTED, },
|
|
[TIPC_NLA_MEDIA] = { .type = NLA_NESTED, },
|
|
[TIPC_NLA_NODE] = { .type = NLA_NESTED, },
|
|
[TIPC_NLA_NODE] = { .type = NLA_NESTED, },
|
|
[TIPC_NLA_NET] = { .type = NLA_NESTED, },
|
|
[TIPC_NLA_NET] = { .type = NLA_NESTED, },
|
|
- [TIPC_NLA_NAME_TABLE] = { .type = NLA_NESTED, }
|
|
|
|
|
|
+ [TIPC_NLA_NAME_TABLE] = { .type = NLA_NESTED, },
|
|
|
|
+ [TIPC_NLA_MON] = { .type = NLA_NESTED, },
|
|
};
|
|
};
|
|
|
|
|
|
const struct nla_policy
|
|
const struct nla_policy
|
|
@@ -61,6 +62,11 @@ tipc_nl_name_table_policy[TIPC_NLA_NAME_TABLE_MAX + 1] = {
|
|
[TIPC_NLA_NAME_TABLE_PUBL] = { .type = NLA_NESTED }
|
|
[TIPC_NLA_NAME_TABLE_PUBL] = { .type = NLA_NESTED }
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+const struct nla_policy tipc_nl_monitor_policy[TIPC_NLA_MON_MAX + 1] = {
|
|
|
|
+ [TIPC_NLA_MON_UNSPEC] = { .type = NLA_UNSPEC },
|
|
|
|
+ [TIPC_NLA_MON_ACTIVATION_THRESHOLD] = { .type = NLA_U32 },
|
|
|
|
+};
|
|
|
|
+
|
|
const struct nla_policy tipc_nl_sock_policy[TIPC_NLA_SOCK_MAX + 1] = {
|
|
const struct nla_policy tipc_nl_sock_policy[TIPC_NLA_SOCK_MAX + 1] = {
|
|
[TIPC_NLA_SOCK_UNSPEC] = { .type = NLA_UNSPEC },
|
|
[TIPC_NLA_SOCK_UNSPEC] = { .type = NLA_UNSPEC },
|
|
[TIPC_NLA_SOCK_ADDR] = { .type = NLA_U32 },
|
|
[TIPC_NLA_SOCK_ADDR] = { .type = NLA_U32 },
|
|
@@ -214,7 +220,12 @@ static const struct genl_ops tipc_genl_v2_ops[] = {
|
|
.cmd = TIPC_NL_NAME_TABLE_GET,
|
|
.cmd = TIPC_NL_NAME_TABLE_GET,
|
|
.dumpit = tipc_nl_name_table_dump,
|
|
.dumpit = tipc_nl_name_table_dump,
|
|
.policy = tipc_nl_policy,
|
|
.policy = tipc_nl_policy,
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .cmd = TIPC_NL_MON_SET,
|
|
|
|
+ .doit = tipc_nl_node_set_monitor,
|
|
|
|
+ .policy = tipc_nl_policy,
|
|
|
|
+ },
|
|
};
|
|
};
|
|
|
|
|
|
int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr)
|
|
int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr)
|