Lines Matching full:comp

53 #define INCR(counter) ++comp->counter;
62 sl_compress_init(struct slcompress *comp, int max_state) in sl_compress_init() argument
65 struct cstate *tstate = comp->tstate; in sl_compress_init()
69 bzero((char *)comp, sizeof(*comp)); in sl_compress_init()
72 bzero((char *)comp->tstate, sizeof(comp->tstate)); in sl_compress_init()
73 bzero((char *)comp->rstate, sizeof(comp->rstate)); in sl_compress_init()
81 comp->last_cs = &tstate[0]; in sl_compress_init()
82 comp->last_recv = 255; in sl_compress_init()
83 comp->last_xmit = 255; in sl_compress_init()
84 comp->flags = SLF_TOSS; in sl_compress_init()
143 * and "ip" must be == mtod(m, struct ip *). "comp" supplies the
151 sl_compress_tcp(struct mbuf *m, struct ip *ip, struct slcompress *comp, in sl_compress_tcp() argument
154 struct cstate *cs = comp->last_cs->cs_next; in sl_compress_tcp()
199 struct cstate *lastcs = comp->last_cs; in sl_compress_tcp()
220 comp->last_cs = lcs; in sl_compress_tcp()
232 comp->last_cs = lcs; in sl_compress_tcp()
374 if (compress_cid == 0 || comp->last_xmit != cs->cs_id) { in sl_compress_tcp()
375 comp->last_xmit = cs->cs_id; in sl_compress_tcp()
401 comp->last_xmit = cs->cs_id; in sl_compress_tcp()
406 sl_uncompress_tcp(u_char **bufp, int len, u_int type, struct slcompress *comp) in sl_uncompress_tcp() argument
412 vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen); in sl_uncompress_tcp()
451 struct slcompress *comp, u_char **hdrp, u_int *hlenp) in sl_uncompress_tcp_core() argument
466 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp_core()
467 comp->flags &=~ SLF_TOSS; in sl_uncompress_tcp_core()
502 comp->flags &=~ SLF_TOSS; in sl_uncompress_tcp_core()
503 comp->last_recv = *cp++; in sl_uncompress_tcp_core()
508 if (comp->flags & SLF_TOSS) { in sl_uncompress_tcp_core()
513 cs = &comp->rstate[comp->last_recv]; in sl_uncompress_tcp_core()
585 comp->flags |= SLF_TOSS; in sl_uncompress_tcp_core()