xref: /linux/net/mptcp/mptcp_pm_gen.h (revision c297aa7d3fb6755890b78b483e82c9cf07370d50)
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 */
5 
6 #ifndef _LINUX_MPTCP_PM_GEN_H
7 #define _LINUX_MPTCP_PM_GEN_H
8 
9 #include <net/netlink.h>
10 #include <net/genetlink.h>
11 
12 #include <uapi/linux/mptcp_pm.h>
13 
14 /* Common nested types */
15 extern const struct nla_policy mptcp_pm_address_nl_policy[MPTCP_PM_ADDR_ATTR_IF_IDX + 1];
16 
17 extern const struct nla_policy mptcp_pm_add_addr_nl_policy[MPTCP_PM_ENDPOINT_ADDR + 1];
18 
19 extern const struct nla_policy mptcp_pm_del_addr_nl_policy[MPTCP_PM_ENDPOINT_ADDR + 1];
20 
21 extern const struct nla_policy mptcp_pm_get_addr_nl_policy[MPTCP_PM_ATTR_TOKEN + 1];
22 
23 extern const struct nla_policy mptcp_pm_flush_addrs_nl_policy[MPTCP_PM_ENDPOINT_ADDR + 1];
24 
25 extern const struct nla_policy mptcp_pm_set_limits_nl_policy[MPTCP_PM_ATTR_SUBFLOWS + 1];
26 
27 extern const struct nla_policy mptcp_pm_get_limits_nl_policy[MPTCP_PM_ATTR_SUBFLOWS + 1];
28 
29 extern const struct nla_policy mptcp_pm_set_flags_nl_policy[MPTCP_PM_ATTR_ADDR_REMOTE + 1];
30 
31 extern const struct nla_policy mptcp_pm_announce_nl_policy[MPTCP_PM_ATTR_TOKEN + 1];
32 
33 extern const struct nla_policy mptcp_pm_remove_nl_policy[MPTCP_PM_ATTR_LOC_ID + 1];
34 
35 extern const struct nla_policy mptcp_pm_subflow_create_nl_policy[MPTCP_PM_ATTR_ADDR_REMOTE + 1];
36 
37 extern const struct nla_policy mptcp_pm_subflow_destroy_nl_policy[MPTCP_PM_ATTR_ADDR_REMOTE + 1];
38 
39 /* Ops table for mptcp_pm */
40 extern const struct genl_ops mptcp_pm_nl_ops[11];
41 
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);
57 
58 #endif /* _LINUX_MPTCP_PM_GEN_H */
59