26#if PPP_SUPPORT && VJ_SUPPORT
83#define TYPE_UNCOMPRESSED_TCP 0x70
84#define TYPE_COMPRESSED_TCP 0x80
85#define TYPE_ERROR 0x00
96#define SPECIAL_I (NEW_S|NEW_W|NEW_U)
97#define SPECIAL_D (NEW_S|NEW_A|NEW_W|NEW_U)
98#define SPECIALS_MASK (NEW_S|NEW_A|NEW_W|NEW_U)
100#define TCP_PUSH_BIT 0x10
110 struct cstate *cs_next;
115 char csu_hdr[MAX_HDR];
116 struct ip_hdr csu_ip;
119#define cs_ip vjcs_u.csu_ip
120#define cs_hdr vjcs_u.csu_hdr
125 u32_t vjs_compressed;
128 u32_t vjs_uncompressedin;
129 u32_t vjs_compressedin;
138 struct cstate *last_cs;
147 struct cstate tstate[MAX_SLOTS];
148 struct cstate rstate[MAX_SLOTS];
154extern void vj_compress_init (
struct vjcompress *comp);
155extern u8_t vj_compress_tcp (
struct vjcompress *comp,
struct pbuf **pb);
156extern void vj_uncompress_err (
struct vjcompress *comp);
157extern int vj_uncompress_uncomp(
struct pbuf *nb,
struct vjcompress *comp);
158extern int vj_uncompress_tcp (
struct pbuf **nb,
struct vjcompress *comp);