2020-11-05 11:41:31 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-06-17 14:56:46 +00:00
|
|
|
// Copyright © 2018-2021 WireGuard LLC. All Rights Reserved.
|
2020-11-05 11:41:31 +00:00
|
|
|
|
2020-12-02 12:02:36 +00:00
|
|
|
#include "key.h"
|
|
|
|
#include "x25519.h"
|
2021-06-16 15:09:40 +00:00
|
|
|
|
|
|
|
/* From <sys/kern_control.h> */
|
|
|
|
#define CTLIOCGINFO 0xc0644e03UL
|
|
|
|
struct ctl_info {
|
|
|
|
u_int32_t ctl_id;
|
|
|
|
char ctl_name[96];
|
|
|
|
};
|
|
|
|
struct sockaddr_ctl {
|
|
|
|
u_char sc_len;
|
|
|
|
u_char sc_family;
|
|
|
|
u_int16_t ss_sysaddr;
|
|
|
|
u_int32_t sc_id;
|
|
|
|
u_int32_t sc_unit;
|
|
|
|
u_int32_t sc_reserved[5];
|
|
|
|
};
|