/*
* Definitions for tcp compression routines.
*
- * $Id: vjcompress.h,v 1.2 1994/09/19 04:20:28 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.
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_ */
* OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
* OR MODIFICATIONS.
*
- * $Id: ppp_comp.c,v 1.2 1996/01/18 03:18:07 paulus Exp $
+ * $Id: ppp_comp.c,v 1.3 1996/05/28 00:55:44 paulus Exp $
*/
/*
/*
* "Decompress" a VJ-uncompressed packet.
*/
- if (!vj_uncompress_uncomp(dp, &cp->vj_comp))
+ if (!vj_uncompress_uncomp(dp, hlen, &cp->vj_comp))
goto bad;
mp->b_rptr[3] = PPP_IP; /* fix up the PPP protocol field */
}