summaryrefslogtreecommitdiff
path: root/sys/net/pfkey.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-02-25 02:48:30 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-02-25 02:48:30 +0000
commit726377c15a14e1c6608bee6b1c4a7c1d2054f92a (patch)
treed3caf0ff8633963ee87c4d033ee93825df9bc6fa /sys/net/pfkey.c
parent35a0dde880ace4dd0141093eea225bd92b499cb4 (diff)
Removed osdep.h dependencies.
Diffstat (limited to 'sys/net/pfkey.c')
-rw-r--r--sys/net/pfkey.c20
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;