summaryrefslogtreecommitdiff
path: root/sys/net/zlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Move zlib.c from net to libkern.Craig Rodrigues2015-04-221-5414/+0
| | | | | | | | | | | | | | | It is not network-specific code and would be better as part of libkern instead. Move zlib.h and zutil.h from net/ to sys/ Update includes to use sys/zlib.h and sys/zutil.h instead of net/ Submitted by: Steve Kiernan stevek@juniper.net Obtained from: Juniper Networks, Inc. GitHub Pull Request: https://github.com/freebsd/freebsd/pull/28 Relnotes: yes Notes: svn path=/head/; revision=281855
* Juggle some internal symbols from our antique zlib (that originally camePeter Wemm2013-01-061-1/+8
| | | | | | | | | | in from kernel-pppd which is long gone) so that ZFS and DTRACE play nice. This is a horrible hack to get freefall to compile, and is in dire need of reconciliation. This antique zlib-1.04 code needs to go away. Notes: svn path=/head/; revision=245102
* Revert previous commit...Kevin Lo2012-10-101-1/+1
| | | | | | | Pointyhat to: kevlo (myself) Notes: svn path=/head/; revision=241394
* Prefer NULL over 0 for pointersKevin Lo2012-10-091-1/+1
| | | | Notes: svn path=/head/; revision=241370
* Forward declare z_errmsg with static linkage since it is definedCraig Rodrigues2005-09-111-1/+1
| | | | | | | with static linkage later in the file. Eliminates GCC 4.0 error. Notes: svn path=/head/; revision=149993
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+2
| | | | Notes: svn path=/head/; revision=139823
* Give zlib the ability to be a module that can be depended on,Mark Murray2004-06-201-0/+24
| | | | | | | in the MODULE_DEPEND() sense. Notes: svn path=/head/; revision=130799
* chase more of the MIN/MAX mess. *sigh*Alfred Perlstein2003-02-021-0/+1
| | | | Notes: svn path=/head/; revision=110235
* Consolidate MIN/MAX macros into one place (param.h).Alfred Perlstein2003-02-021-2/+0
| | | | | | | Submitted by: Hiten Pandya <hiten@unixdaemons.com> Notes: svn path=/head/; revision=110232
* Fix instances of macros with improperly parenthasized arguments.Alfred Perlstein2002-11-091-14/+14
| | | | | | | Verified by: md5 Notes: svn path=/head/; revision=106696
* We have mem{cpy,cmp,set} functions in the kernel, don't #define them toPoul-Henning Kamp2002-10-201-3/+0
| | | | | | | | | b{copy,zero,cmp} functions anymore. Spotted by: FlexeLint. Notes: svn path=/head/; revision=105579
* Work around zlib bug where using a deflate window size of 8 willChris D. Faulhaber2002-03-231-1/+1
| | | | | | | cause memory corruption. Notes: svn path=/head/; revision=93013
* Fix a bug introduced in 1.11 (and also MFCd to stable AND the security branch)Matthew Dillon2002-03-201-1/+5
| | | | | | | | | | | | | | | | | | | | | | | that causes a machine to panic when the kernel PPP / DEFLATE code is used. 1.11 moved a ZFREE to a point after the structural members were clobbered by stores into a union'd structure. This commit fixes the bug and adds a big whopping comment to make sure the code isn't 'cleaned up' again :-) Ian Dowse came up with the same patch independantly 68 seconds before I did, talk about Karma! I would also like to thank Eugene Grosbein for marathon work in tracking the problem down by udpating his -stable based on date over and over again to close in on the commit that caused his crashes. PR: kern/35969 Reviewed by: Ian Dowse <iedowse@maths.tcd.ie> X-MFC after: immediately Notes: svn path=/head/; revision=92749
* Error handling fixes for inflate.Chris D. Faulhaber2002-02-171-4/+7
| | | | Notes: svn path=/head/; revision=90775
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-4/+4
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-3/+3
| | | | | | | kernel compile Notes: svn path=/head/; revision=43305
* Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some morePeter Wemm1998-06-201-3/+3
| | | | | | | problems, which I'll have a go at shortly. Notes: svn path=/head/; revision=37065
* Update kernel parts of ppp to ppp-2.3.3. Not much has changed exceptPeter Wemm1998-03-211-716/+1456
| | | | | | | that the deflate components use zlib 1.0.4 instead of zlib 0.95. Notes: svn path=/head/; revision=34768
* Staticize.Eivind Eklund1998-02-091-2/+2
| | | | Notes: svn path=/head/; revision=33181
* Removed unused #includes.Bruce Evans1997-09-011-2/+1
| | | | Notes: svn path=/head/; revision=28989
* Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at thePeter Wemm1997-08-191-0/+4640
| | | | | | | | | | | | | 2.3.0 -> 2.3.1 changes, but I seem to recall that there are certain "issues" with 2.3.1 (I'm not sure if it's just pppd or the whole lot, I am not quite that far). The present pppd seems to work with it just fine for the time being. Among the changes are that zlib (aka LZ77 aka deflate aka gzip) compression is implemented as well as the original compress(1) LZW style. Notes: svn path=/head/; revision=28415
* Send these files to the attic until they are in use for several reasons.Peter Wemm1997-07-051-4636/+0
| | | | | | | | | | | | | | 1: cvs and cvsup don't really support vendor branches other than 1.1.1.x, this is on 1.1.2.x and causing problems in cvsup 'checkout mode', just the same as cvs has problems interpreting dates. (cvs has "1.1.1" hard coded) 2: cvs 'rm'ing them takes them off the vendor branch and should hide the above problems. 3: it's just clutter until the merge is done. 4: if the problem isn't sufficiently resolved by taking these off the vendor branch, the files will have to be nuked and re-imported. Notes: svn path=/head/; revision=27209
* Initial revisionPeter Wemm1997-07-011-0/+4636
Notes: svn path=/head/; revision=27154