X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=include%2Fnet%2Fvjcompress.h;h=03a33bf79c9b3f975c941d869d0a6f9ab4a69df7;hp=da427cedd59ad56c80d48b9a889824de4cc08750;hb=4d5401a1de510cdbb89cf10bc5956774c62683be;hpb=a9de09991f0cc67879a9bb33f6d553d8c291aaf8 diff --git a/include/net/vjcompress.h b/include/net/vjcompress.h index da427ce..03a33bf 100644 --- a/include/net/vjcompress.h +++ b/include/net/vjcompress.h @@ -1,7 +1,7 @@ /* * Definitions for tcp compression routines. * - * $Id: vjcompress.h,v 1.1 1994/09/16 06:57:09 paulus Exp $ + * $Id: vjcompress.h,v 1.3 1996/05/28 00:55:33 paulus Exp $ * * Copyright (c) 1989 Regents of the University of California. * All rights reserved. @@ -121,14 +121,7 @@ struct vjcompress { u_char last_xmit; /* last sent conn. id */ u_short flags; #ifndef VJ_NO_STATS - int vjs_packets; /* outbound packets */ - int vjs_compressed; /* outbound compressed packets */ - int vjs_searches; /* searches for connection state */ - int vjs_misses; /* times couldn't find conn. state */ - int vjs_uncompressedin; /* inbound uncompressed packets */ - int vjs_compressedin; /* inbound compressed packets */ - int vjs_errorin; /* inbound unknown type packets */ - int vjs_tossed; /* inbound packets tossed because of error */ + struct vjstat stats; #endif struct cstate tstate[MAX_STATES]; /* xmit connection states */ struct cstate rstate[MAX_STATES]; /* receive connection states */ @@ -139,12 +132,13 @@ struct vjcompress { extern void vj_compress_init __P((struct vjcompress *comp, int max_state)); extern u_int vj_compress_tcp __P((struct ip *ip, u_int mlen, - struct vjcompress *comp, - int compress_cid_flag, u_char **vjhdrp)); + struct vjcompress *comp, int compress_cid_flag, + u_char **vjhdrp)); extern void vj_uncompress_err __P((struct vjcompress *comp)); -extern int vj_uncompress_uncomp __P((u_char *buf, struct vjcompress *comp)); +extern int vj_uncompress_uncomp __P((u_char *buf, int buflen, + struct vjcompress *comp)); extern int vj_uncompress_tcp __P((u_char *buf, int buflen, int total_len, - struct vjcompress *comp, u_char **hdrp, - u_int *hlenp)); + struct vjcompress *comp, u_char **hdrp, + u_int *hlenp)); #endif /* _VJCOMPRESS_H_ */