| 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/wireguard.yaml */ |
| 4 |
/* YNL-GEN kernel header */ |
| 5 |
/* YNL-ARG --function-prefix wg */ |
| 6 |
/* To regenerate run: tools/net/ynl/ynl-regen.sh */ |
| 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 |
/* Common nested types */ |
| 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 |
/* Ops table for wireguard */ |
| 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 /* _LINUX_WIREGUARD_GEN_H */ |