FreeBSD/Linux Kernel Cross Reference
sys/dev/wg/if_wg.h
1 /* SPDX-License-Identifier: ISC
2 *
3 * Copyright (c) 2019 Matt Dunwoodie <ncon@noconroy.net>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *
9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 *
17 * $FreeBSD$
18 */
19
20 #ifndef __IF_WG_H__
21 #define __IF_WG_H__
22
23 #include <net/if.h>
24 #include <netinet/in.h>
25
26 struct wg_data_io {
27 char wgd_name[IFNAMSIZ];
28 void *wgd_data;
29 size_t wgd_size;
30 };
31
32 #define WG_KEY_SIZE 32
33
34 #define SIOCSWG _IOWR('i', 210, struct wg_data_io)
35 #define SIOCGWG _IOWR('i', 211, struct wg_data_io)
36
37 #endif /* __IF_WG_H__ */
Cache object: 730ff404baa8dcea72d774bf2614e5b8
|