slcompress.h (22997) | slcompress.h (26516) |
---|---|
1/* 2 * Definitions for tcp compression routines. 3 * | 1/* 2 * Definitions for tcp compression routines. 3 * |
4 * $Header: /home/ncvs/src/usr.sbin/ppp/slcompress.h,v 1.4 1997/01/14 07:15:40 jkh Exp $ | 4 * $Header: /home/ncvs/src/usr.sbin/ppp/slcompress.h,v 1.5 1997/02/22 16:10:55 peter Exp $ |
5 * 6 * Copyright (c) 1989 Regents of the University of California. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms are permitted 10 * provided that the above copyright notice and this paragraph are 11 * duplicated in all such forms and that any documentation, 12 * advertising materials, and other materials related to such 13 * distribution and use acknowledge that the software was developed 14 * by the University of California, Berkeley. The name of the 15 * University may not be used to endorse or promote products derived 16 * from this software without specific prior written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * | 5 * 6 * Copyright (c) 1989 Regents of the University of California. 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms are permitted 10 * provided that the above copyright notice and this paragraph are 11 * duplicated in all such forms and that any documentation, 12 * advertising materials, and other materials related to such 13 * distribution and use acknowledge that the software was developed 14 * by the University of California, Berkeley. The name of the 15 * University may not be used to endorse or promote products derived 16 * from this software without specific prior written permission. 17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 18 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 19 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 20 * |
21 * $Id$ | 21 * $Id: slcompress.h,v 1.5 1997/02/22 16:10:55 peter Exp $ |
22 * 23 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: 24 * - Initial distribution. 25 */ | 22 * 23 * Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989: 24 * - Initial distribution. 25 */ |
26#include "cdefs.h" | |
27 28#define MAX_STATES 16 /* must be > 2 and < 256 */ 29#define MAX_HDR 128 /* XXX 4bsd-ism: should really be 128 */ 30 31/* 32 * Compressed packet format: 33 * 34 * The first octet contains the packet type (top 3 bits), TCP --- 98 unchanged lines hidden (view full) --- 133 int sls_compressedin; /* inbound compressed packets */ 134 int sls_errorin; /* inbound unknown type packets */ 135 int sls_tossed; /* inbound packets tossed because of error */ 136}; 137 138/* flag values */ 139#define SLF_TOSS 1 /* tossing rcvd frames because of input err */ 140 | 26 27#define MAX_STATES 16 /* must be > 2 and < 256 */ 28#define MAX_HDR 128 /* XXX 4bsd-ism: should really be 128 */ 29 30/* 31 * Compressed packet format: 32 * 33 * The first octet contains the packet type (top 3 bits), TCP --- 98 unchanged lines hidden (view full) --- 132 int sls_compressedin; /* inbound compressed packets */ 133 int sls_errorin; /* inbound unknown type packets */ 134 int sls_tossed; /* inbound packets tossed because of error */ 135}; 136 137/* flag values */ 138#define SLF_TOSS 1 /* tossing rcvd frames because of input err */ 139 |
141extern void sl_compress_init __P((struct slcompress *)); | 140extern void sl_compress_init(struct slcompress *); |
142extern u_char sl_compress_tcp __P((struct mbuf *, struct ip *, 143 struct slcompress *, int compress_cid_flag)); | 141extern u_char sl_compress_tcp __P((struct mbuf *, struct ip *, 142 struct slcompress *, int compress_cid_flag)); |
144extern int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *)); | 143extern int sl_uncompress_tcp(u_char **, int, u_int, struct slcompress *); |