summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-07 02:57:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-07-07 02:57:26 +0000
commitee5cd0903a80ae6b6ca2b3cfd67063fe2f873d12 (patch)
treeae3eb9a4e68e144c6682c4b51d3cee5c585d4a6c /sys/netinet
parentab8a8b247d0d9b96e461ed86b97cace56d02726f (diff)
Replace the cruddy old sys/net/zlib.[ch]. We now use the sys/lib/libz
code. Missing chunks of the API are imported from the libc version, with a few #ifdef's to port it into the kernel environment. The bootblocks already used the newer code, and should encounter no surprises since there are so few changes to the existing files. In the kernel, ipcomp and kernel ppp are changed to the new API. ipcomp has been tested. ok tedu the brave
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_ipcomp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipcomp.c b/sys/netinet/ip_ipcomp.c
index fff0dbfe999..f552f0b8df7 100644
--- a/sys/netinet/ip_ipcomp.c
+++ b/sys/netinet/ip_ipcomp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipcomp.c,v 1.27 2010/07/09 16:58:06 reyk Exp $ */
+/* $OpenBSD: ip_ipcomp.c,v 1.28 2011/07/07 02:57:25 deraadt Exp $ */
/*
* Copyright (c) 2001 Jean-Jacques Bernard-Gundol (jj@wabbitt.org)
@@ -58,9 +58,10 @@
#include <net/if_enc.h>
#include <crypto/cryptodev.h>
-#include <crypto/deflate.h>
#include <crypto/xform.h>
+#include <lib/libz/zlib.h>
+
#include "bpfilter.h"
#ifdef ENCDEBUG