Rework headers and includes

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2016-09-29 04:36:14 +02:00
parent 967ea8c712
commit 8a57a2cefb
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@ struct def {
extern const struct def defs[];
#ifdef __KERNEL__
#include "../../../src/wireguard.h"
#include "../../../src/device.h"
#include "../../../src/peer.h"
#include "../../../src/noise.h"
const struct def defs[] = {
{ "SOCK_DEVICE_OFFSET", offsetof(struct sock, sk_user_data) },
{ "DEVICE_NAME_OFFSET", -ALIGN(sizeof(struct net_device), NETDEV_ALIGN) + offsetof(struct net_device, name) },