• Home
  • Raw
  • Download

Lines Matching refs:hlen

164   register u_int hlen = ip->ip_hl;  in sl_compress_tcp()  local
183 th = (struct tcphdr *) & ((int *) ip)[hlen]; in sl_compress_tcp()
235 hlen += th->th_off; in sl_compress_tcp()
236 hlen <<= 2; in sl_compress_tcp()
237 if (hlen > m->m_len) in sl_compress_tcp()
265 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen]; in sl_compress_tcp()
266 deltaS = hlen; in sl_compress_tcp()
267 hlen += th->th_off; in sl_compress_tcp()
268 hlen <<= 2; in sl_compress_tcp()
269 if (hlen > m->m_len) in sl_compress_tcp()
334 ntohs(cs->cs_ip.ip_len) == hlen) in sl_compress_tcp()
350 deltaS == ntohs(cs->cs_ip.ip_len) - hlen) { in sl_compress_tcp()
358 if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) { in sl_compress_tcp()
379 memcpy(&cs->cs_ip, ip, hlen); in sl_compress_tcp()
398 hlen -= deltaS + 3; in sl_compress_tcp()
399 cp += hlen; in sl_compress_tcp()
403 hlen -= deltaS + 4; in sl_compress_tcp()
404 cp += hlen; in sl_compress_tcp()
408 m->m_len -= hlen; in sl_compress_tcp()
409 m->m_offset += hlen; in sl_compress_tcp()
422 memcpy(&cs->cs_ip, ip, hlen); in sl_compress_tcp()
434 register u_int hlen, changes; in sl_uncompress_tcp() local
454 hlen = ip->ip_hl << 2; in sl_uncompress_tcp()
455 if ((int)(hlen + sizeof(struct tcphdr)) > len) in sl_uncompress_tcp()
457 th = (struct tcphdr *) & ((char *) ip)[hlen]; in sl_uncompress_tcp()
458 hlen += THOFFSET(th) << 2; in sl_uncompress_tcp()
459 if (hlen > MAX_HDR) in sl_uncompress_tcp()
461 memcpy(&cs->cs_ip, ip, hlen); in sl_uncompress_tcp()
462 cs->cs_hlen = hlen; in sl_uncompress_tcp()
501 hlen = cs->cs_ip.ip_hl << 2; in sl_uncompress_tcp()
502 th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen]; in sl_uncompress_tcp()
572 for (changes = 0; hlen > 0; hlen -= 2) in sl_uncompress_tcp()