| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 | #ifndef _LINUX_WIREGUARD_GEN_H
|
| 9 | #define _LINUX_WIREGUARD_GEN_H
|
| 10 |
|
| 11 | #include <net/netlink.h>
|
| 12 | #include <net/genetlink.h>
|
| 13 |
|
| 14 | #include <uapi/linux/wireguard.h>
|
| 15 | #include <linux/time_types.h>
|
| 16 |
|
| 17 |
|
| 18 | extern const struct nla_policy wireguard_wgallowedip_nl_policy[WGALLOWEDIP_A_FLAGS + 1];
|
| 19 | extern const struct nla_policy wireguard_wgpeer_nl_policy[WGPEER_A_PROTOCOL_VERSION + 1];
|
| 20 |
|
| 21 |
|
| 22 | extern const struct genl_split_ops wireguard_nl_ops[2];
|
| 23 |
|
| 24 | int wg_get_device_start(struct netlink_callback *cb);
|
| 25 | int wg_get_device_done(struct netlink_callback *cb);
|
| 26 |
|
| 27 | int wg_get_device_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
|
| 28 | int wg_set_device_doit(struct sk_buff *skb, struct genl_info *info);
|
| 29 |
|
| 30 | #endif
|