diff options
| author | 1999-02-25 02:48:26 +0000 | |
|---|---|---|
| committer | 1999-02-25 02:48:26 +0000 | |
| commit | 64a33889e52eb6ad3591a72a132fac91dff735dd (patch) | |
| tree | f5282027a1187d8ab2831d164a0a2402b65de69f /sys/net/pfkey.c | |
| parent | Remove osdep.h dependencies. (diff) | |
| download | wireguard-openbsd-64a33889e52eb6ad3591a72a132fac91dff735dd.tar.xz wireguard-openbsd-64a33889e52eb6ad3591a72a132fac91dff735dd.zip | |
Removed osdep.h dependencies.
Diffstat (limited to 'sys/net/pfkey.c')
| -rw-r--r-- | sys/net/pfkey.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/sys/net/pfkey.c b/sys/net/pfkey.c index e603d6a3bda..306651c4c2d 100644 --- a/sys/net/pfkey.c +++ b/sys/net/pfkey.c @@ -15,7 +15,21 @@ You should have received a copy of the license with this software. If you didn't get a copy, you may request one from <license@inner.net>. */ -#include <sys/osdep.h> + +#include <sys/types.h> +#include <sys/param.h> +#include <sys/socket.h> +#include <sys/systm.h> +#include <sys/mbuf.h> +#include <sys/kernel.h> +#include <sys/malloc.h> +#include <sys/socketvar.h> +#include <sys/proc.h> +#include <net/route.h> +#include <netinet/in.h> +#include <net/pfkeyv2.h> + + #include <sys/protosw.h> #include <sys/domain.h> #include <net/raw_cb.h> @@ -57,10 +71,10 @@ pfkey_register(struct pfkey_version *version) int rval; if ((version->protocol > PFKEY_PROTOCOL_MAX) || (version->protocol < 0)) - return OSDEP_ERROR(EPROTONOSUPPORT); + return EPROTONOSUPPORT; if (pfkey_versions[version->protocol]) - return OSDEP_ERROR(EADDRINUSE); + return EADDRINUSE; pfkey_versions[version->protocol] = version; |
