Lines Matching refs:comp
53 #define INCR(counter) ++comp->counter;
62 sl_compress_init(struct slcompress *comp, int max_state)
65 struct cstate *tstate = comp->tstate;
69 bzero((char *)comp, sizeof(*comp));
72 bzero((char *)comp->tstate, sizeof(comp->tstate));
73 bzero((char *)comp->rstate, sizeof(comp->rstate));
81 comp->last_cs = &tstate[0];
82 comp->last_recv = 255;
83 comp->last_xmit = 255;
84 comp->flags = SLF_TOSS;
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,
154 struct cstate *cs = comp->last_cs->cs_next;
199 struct cstate *lastcs = comp->last_cs;
220 comp->last_cs = lcs;
232 comp->last_cs = lcs;
374 if (compress_cid == 0 || comp->last_xmit != cs->cs_id) {
375 comp->last_xmit = cs->cs_id;
401 comp->last_xmit = cs->cs_id;
406 sl_uncompress_tcp(u_char **bufp, int len, u_int type, struct slcompress *comp)
412 vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen);
451 struct slcompress *comp, u_char **hdrp, u_int *hlenp)
466 cs = &comp->rstate[comp->last_recv = ip->ip_p];
467 comp->flags &=~ SLF_TOSS;
502 comp->flags &=~ SLF_TOSS;
503 comp->last_recv = *cp++;
508 if (comp->flags & SLF_TOSS) {
513 cs = &comp->rstate[comp->last_recv];
585 comp->flags |= SLF_TOSS;