Lines Matching refs:hlen
155 u_int hlen = ip->ip_hl; in sl_compress_tcp() local
172 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; in sl_compress_tcp()
221 hlen += th->th_off; in sl_compress_tcp()
222 hlen <<= 2; in sl_compress_tcp()
223 if (hlen > m->m_len) in sl_compress_tcp()
251 oth = (struct tcphdr *)&((int32_t *)&cs->cs_ip)[hlen]; in sl_compress_tcp()
252 deltaS = hlen; in sl_compress_tcp()
253 hlen += th->th_off; in sl_compress_tcp()
254 hlen <<= 2; in sl_compress_tcp()
255 if (hlen > m->m_len) in sl_compress_tcp()
318 ntohs(cs->cs_ip.ip_len) == hlen) in sl_compress_tcp()
333 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) { in sl_compress_tcp()
341 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) { in sl_compress_tcp()
361 BCOPY(ip, &cs->cs_ip, hlen); in sl_compress_tcp()
376 hlen -= deltaS + 4; in sl_compress_tcp()
377 cp += hlen; in sl_compress_tcp()
381 hlen -= deltaS + 3; in sl_compress_tcp()
382 cp += hlen; in sl_compress_tcp()
385 m->m_len -= hlen; in sl_compress_tcp()
386 m->m_data += hlen; in sl_compress_tcp()
399 BCOPY(ip, &cs->cs_ip, hlen); in sl_compress_tcp()
409 int hlen, vjlen; in sl_uncompress_tcp() local
412 vjlen = sl_uncompress_tcp_core(cp, len, len, type, comp, &hdr, &hlen); in sl_uncompress_tcp()
434 cp -= hlen; in sl_uncompress_tcp()
435 len += hlen; in sl_uncompress_tcp()
436 BCOPY(hdr, cp, hlen); in sl_uncompress_tcp()
454 u_int hlen, changes; in sl_uncompress_tcp_core() local
473 hlen = ip->ip_hl << 2; in sl_uncompress_tcp_core()
474 if (hlen + sizeof(struct tcphdr) > buflen) in sl_uncompress_tcp_core()
476 hlen += ((struct tcphdr *)&((char *)ip)[hlen])->th_off << 2; in sl_uncompress_tcp_core()
477 if (hlen > MAX_HDR || hlen > buflen) in sl_uncompress_tcp_core()
479 BCOPY(ip, &cs->cs_ip, hlen); in sl_uncompress_tcp_core()
480 cs->cs_hlen = hlen; in sl_uncompress_tcp_core()
483 *hlenp = hlen; in sl_uncompress_tcp_core()
514 hlen = cs->cs_ip.ip_hl << 2; in sl_uncompress_tcp_core()
515 th = (struct tcphdr *)&((u_char *)&cs->cs_ip)[hlen]; in sl_uncompress_tcp_core()
574 for (changes = 0; hlen > 0; hlen -= 2) in sl_uncompress_tcp_core()