1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2 /* Do not edit directly, auto-generated from: */
3 /* Documentation/netlink/specs/mptcp_pm.yaml */
4 /* YNL-GEN kernel header */
6 #ifndef _LINUX_MPTCP_PM_GEN_H
7 #define _LINUX_MPTCP_PM_GEN_H
9 #include <net/netlink.h>
10 #include <net/genetlink.h>
12 #include <uapi/linux/mptcp_pm.h>
14 /* Common nested types */
15 extern const struct nla_policy mptcp_pm_address_nl_policy
[MPTCP_PM_ADDR_ATTR_IF_IDX
+ 1];
17 extern const struct nla_policy mptcp_pm_add_addr_nl_policy
[MPTCP_PM_ENDPOINT_ADDR
+ 1];
19 extern const struct nla_policy mptcp_pm_del_addr_nl_policy
[MPTCP_PM_ENDPOINT_ADDR
+ 1];
21 extern const struct nla_policy mptcp_pm_get_addr_nl_policy
[MPTCP_PM_ATTR_TOKEN
+ 1];
23 extern const struct nla_policy mptcp_pm_flush_addrs_nl_policy
[MPTCP_PM_ENDPOINT_ADDR
+ 1];
25 extern const struct nla_policy mptcp_pm_set_limits_nl_policy
[MPTCP_PM_ATTR_SUBFLOWS
+ 1];
27 extern const struct nla_policy mptcp_pm_get_limits_nl_policy
[MPTCP_PM_ATTR_SUBFLOWS
+ 1];
29 extern const struct nla_policy mptcp_pm_set_flags_nl_policy
[MPTCP_PM_ATTR_ADDR_REMOTE
+ 1];
31 extern const struct nla_policy mptcp_pm_announce_nl_policy
[MPTCP_PM_ATTR_TOKEN
+ 1];
33 extern const struct nla_policy mptcp_pm_remove_nl_policy
[MPTCP_PM_ATTR_LOC_ID
+ 1];
35 extern const struct nla_policy mptcp_pm_subflow_create_nl_policy
[MPTCP_PM_ATTR_ADDR_REMOTE
+ 1];
37 extern const struct nla_policy mptcp_pm_subflow_destroy_nl_policy
[MPTCP_PM_ATTR_ADDR_REMOTE
+ 1];
39 /* Ops table for mptcp_pm */
40 extern const struct genl_ops mptcp_pm_nl_ops
[11];
42 int mptcp_pm_nl_add_addr_doit(struct sk_buff
*skb
, struct genl_info
*info
);
43 int mptcp_pm_nl_del_addr_doit(struct sk_buff
*skb
, struct genl_info
*info
);
44 int mptcp_pm_nl_get_addr_doit(struct sk_buff
*skb
, struct genl_info
*info
);
45 int mptcp_pm_nl_get_addr_dumpit(struct sk_buff
*skb
,
46 struct netlink_callback
*cb
);
47 int mptcp_pm_nl_flush_addrs_doit(struct sk_buff
*skb
, struct genl_info
*info
);
48 int mptcp_pm_nl_set_limits_doit(struct sk_buff
*skb
, struct genl_info
*info
);
49 int mptcp_pm_nl_get_limits_doit(struct sk_buff
*skb
, struct genl_info
*info
);
50 int mptcp_pm_nl_set_flags_doit(struct sk_buff
*skb
, struct genl_info
*info
);
51 int mptcp_pm_nl_announce_doit(struct sk_buff
*skb
, struct genl_info
*info
);
52 int mptcp_pm_nl_remove_doit(struct sk_buff
*skb
, struct genl_info
*info
);
53 int mptcp_pm_nl_subflow_create_doit(struct sk_buff
*skb
,
54 struct genl_info
*info
);
55 int mptcp_pm_nl_subflow_destroy_doit(struct sk_buff
*skb
,
56 struct genl_info
*info
);
58 #endif /* _LINUX_MPTCP_PM_GEN_H */