aboutsummaryrefslogtreecommitdiff
path: root/sys/net/slcompress.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove advertising clause from University of California Regent'sWarner Losh2004-04-071-4/+0
| | | | | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson Notes: svn path=/head/; revision=128019
* Don't use ovbcopy(); use void * instead of char *.Dag-Erling Smørgrav2003-04-041-6/+3
| | | | Notes: svn path=/head/; revision=113072
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-1/+1
| | | | Notes: svn path=/head/; revision=102412
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-1/+1
| | | | | | | | | 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
* Add some more comments to the sl_compress_tcp() function.Archie Cobbs1999-11-151-2/+9
| | | | Notes: svn path=/head/; revision=53192
* Add a comment before sl_compress_tcp() regarding mbuf assumptions.Archie Cobbs1999-10-291-0/+4
| | | | Notes: svn path=/head/; revision=52631
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Cast pointers to uintptr_t/intptr_t instead of to u_long/long,Bruce Evans1998-07-151-4/+4
| | | | | | | | | | respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types. Notes: svn path=/head/; revision=37649
* Update kernel parts of pppd from 2.2.0 to 2.3.0. I've yet to look at thePeter Wemm1997-08-191-24/+30
| | | | | | | | | | | | | 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
* Fix this damn mbuf with a negative m_len. It turnsBrian Somers1997-06-221-1/+5
| | | | | | | | | | | | | | | | out to be a problem with VJ header compression. davidg spotted this in usr.sbin/ppp/slcompress.c a while ago, but I believe gave the wrong reasons - it's too easy to reproduce ! The only scenario that I've been able to reproduce the problem under is when m_len is *exactly* 40 ! So go figure ! PR: 3749 Submitted elsewhere by: davidg Obtained from: usr.sbin/ppp/slcompress.c Notes: svn path=/head/; revision=26778
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* When cslip gets an uncompressed packet, it attempts to save off the TCP/IPDavid Greenman1996-04-111-4/+11
| | | | | | | | | | | | | header for use in decompressing subsequant packets. If cslip gets garbage (such as what happens when there is a port speed mismatch or modem line noise), it will occasionally mistake the packet as a valid uncompressed packet. When it tries to save off the header, it doesn't bother to check for the validity of the header length and will happily clobber not only the cslip data structure, but parts of other kernel memory that happens to follow it...causing, ahem, undesired behavior. Notes: svn path=/head/; revision=15185
* slcompress: split one of the functions into two parts, to allow use by bothPeter Wemm1995-10-311-33/+81
| | | | | | | | | | if_sl and if_ppp (from ppp-2.2), eliminating the nearly identical pppcompress.[ch] code. Add maximum VJ compression states argument to sl_compress_init(). if_sl: call sl_compress_init() with the extra argument. Notes: svn path=/head/; revision=11964
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8876
* Cosmetics: to silence gcc -wall.Poul-Henning Kamp1994-10-081-4/+7
| | | | Notes: svn path=/head/; revision=3443
* Fix up some sloppy coding practices:Garrett Wollman1994-08-181-1/+2
| | | | | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter. Notes: svn path=/head/; revision=2112
* Added $Id$David Greenman1994-08-021-2/+1
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+535
Notes: svn path=/head/; revision=1541