Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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 */
18extern const struct nla_policy wireguard_wgallowedip_nl_policy[WGALLOWEDIP_A_FLAGS + 1];
19extern const struct nla_policy wireguard_wgpeer_nl_policy[WGPEER_A_PROTOCOL_VERSION + 1];
20
21/* Ops table for wireguard */
22extern const struct genl_split_ops wireguard_nl_ops[2];
23
24int wg_get_device_start(struct netlink_callback *cb);
25int wg_get_device_done(struct netlink_callback *cb);
26
27int wg_get_device_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
28int wg_set_device_doit(struct sk_buff *skb, struct genl_info *info);
29
30#endif /* _LINUX_WIREGUARD_GEN_H */