Lines Matching full:comp
82 sl_compress_init(struct slcompress *comp, int max_state) in sl_compress_init() argument
85 register struct cstate *tstate = comp->tstate; in sl_compress_init()
87 memset(comp, '\0', sizeof *comp); in sl_compress_init()
94 comp->last_cs = &tstate[0]; in sl_compress_init()
95 comp->last_recv = 255; in sl_compress_init()
96 comp->last_xmit = 255; in sl_compress_init()
97 comp->flags = SLF_TOSS; in sl_compress_init()
157 struct slcompress *comp, in sl_compress_tcp() argument
161 register struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp()
211 register struct cstate *lastcs = comp->last_cs; in sl_compress_tcp()
231 comp->last_cs = lcs; in sl_compress_tcp()
245 comp->last_cs = lcs; in sl_compress_tcp()
395 if (comp->last_xmit == cs->cs_id && compress_cid) { in sl_compress_tcp()
400 comp->last_xmit = cs->cs_id; in sl_compress_tcp()
422 comp->last_xmit = cs->cs_id; in sl_compress_tcp()
428 sl_uncompress_tcp(u_char ** bufp, int len, u_int type, struct slcompress *comp, in sl_uncompress_tcp() argument
444 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp()
445 comp->flags &= ~SLF_TOSS; in sl_uncompress_tcp()
482 if (*cp > max_state || comp->last_recv == 255) in sl_uncompress_tcp()
485 comp->flags &= ~SLF_TOSS; in sl_uncompress_tcp()
486 comp->last_recv = *cp++; in sl_uncompress_tcp()
493 if (comp->flags & SLF_TOSS) { in sl_uncompress_tcp()
498 cs = &comp->rstate[comp->last_recv]; in sl_uncompress_tcp()
581 comp->flags |= SLF_TOSS; in sl_uncompress_tcp()