25 #include "netif/ppp/ppp_opts.h" 26 #if PPP_SUPPORT && VJ_SUPPORT 82 #define TYPE_UNCOMPRESSED_TCP 0x70 83 #define TYPE_COMPRESSED_TCP 0x80 84 #define TYPE_ERROR 0x00 95 #define SPECIAL_I (NEW_S|NEW_W|NEW_U) 96 #define SPECIAL_D (NEW_S|NEW_A|NEW_W|NEW_U) 97 #define SPECIALS_MASK (NEW_S|NEW_A|NEW_W|NEW_U) 99 #define TCP_PUSH_BIT 0x10 109 struct cstate *cs_next;
114 char csu_hdr[MAX_HDR];
118 #define cs_ip vjcs_u.csu_ip 119 #define cs_hdr vjcs_u.csu_hdr 124 u32_t vjs_compressed;
127 u32_t vjs_uncompressedin;
128 u32_t vjs_compressedin;
137 struct cstate *last_cs;
146 struct cstate tstate[MAX_SLOTS];
147 struct cstate rstate[MAX_SLOTS];
153 extern void vj_compress_init (
struct vjcompress *comp);
154 extern u8_t vj_compress_tcp (
struct vjcompress *comp,
struct pbuf **pb);
155 extern void vj_uncompress_err (
struct vjcompress *comp);
156 extern int vj_uncompress_uncomp(
struct pbuf *nb,
struct vjcompress *comp);
157 extern int vj_uncompress_tcp (
struct pbuf **nb,
struct vjcompress *comp);