Lines Matching refs:comp
54 #define INCR(counter) ++comp->counter;
63 sl_compress_init(struct slcompress *comp, int max_state)
66 struct cstate *tstate = comp->tstate;
70 bzero((char *)comp, sizeof(*comp));
73 bzero((char *)comp->tstate, sizeof(comp->tstate));
74 bzero((char *)comp->rstate, sizeof(comp->rstate));
82 comp->last_cs = &tstate[0];
83 comp->last_recv = 255;
84 comp->last_xmit = 255;
85 comp->flags = SLF_TOSS;
145 * and "ip" must be == mtod(m, struct ip *). "comp" supplies the
153 sl_compress_tcp(struct mbuf *m, struct ip *ip, struct slcompress *comp,
156 struct cstate *cs = comp->last_cs->cs_next;
201 struct cstate *lastcs = comp->last_cs;
222 comp->last_cs = lcs;
234 comp->last_cs = lcs;
377 if (compress_cid == 0 || comp->last_xmit != cs->cs_id) {
378 comp->last_xmit = cs->cs_id;
404 comp->last_xmit = cs->cs_id;
410 sl_uncompress_tcp(u_char **bufp, int len, u_int type, struct slcompress *comp)
416 vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen);
455 struct slcompress *comp, u_char **hdrp, u_int *hlenp)
471 cs = &comp->rstate[comp->last_recv = ip->ip_p];
472 comp->flags &=~ SLF_TOSS;
507 comp->flags &=~ SLF_TOSS;
508 comp->last_recv = *cp++;
513 if (comp->flags & SLF_TOSS) {
518 cs = &comp->rstate[comp->last_recv];
590 comp->flags |= SLF_TOSS;