git: wg: Prevent wg_{cookie,noise}.h from including by userland
Aaron LI
aly at crater.dragonflybsd.org
Thu Feb 8 00:32:35 PST 2024
commit 5aabec174bfbab79be0bcfde3d23387556196f76
Author: Aaron LI <aly at aaronly.me>
Date: Thu Feb 8 14:06:19 2024 +0800
wg: Prevent wg_{cookie,noise}.h from including by userland
Since our build system currently would install all headers (i.e., '*.h')
in 'sys/net/wg' directory, but actually only the 'if_wg.h' is required
by userland, i.e., ifconfig(8). So add the '_KERNEL' guard to prevent
the other two headers from including by userland.
Nonetheless, the build system should be improved in the future.
Summary of changes:
sys/net/wg/wg_cookie.h | 4 ++++
sys/net/wg/wg_noise.h | 4 ++++
2 files changed, 8 insertions(+)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5aabec174bfbab79be0bcfde3d23387556196f76
--
DragonFly BSD source repository
More information about the Commits
mailing list