Lines Matching +full:8 +full:th
109 cp[0] = (n) >> 8; \
119 cp[0] = (n) >> 8; \
128 (f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \
137 (f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
146 (f) = htons((cp[1] << 8) | cp[2]); \
164 register struct tcphdr *th; in sl_compress_tcp() local
181 th = (struct tcphdr *) & ((int *) ip)[hlen]; in sl_compress_tcp()
182 if ((__tcp_get_flags(th) & (TH_SYN | TH_FIN | TH_RST | TH_ACK)) != TH_ACK) { in sl_compress_tcp()
183 log_Printf(LogDEBUG, "??? 2 th_flags = %x\n", __tcp_get_flags(th)); in sl_compress_tcp()
198 *(int *) th != ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
219 && *(int *) th == ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
232 #define THOFFSET(th) (th->th_off) in sl_compress_tcp() argument
233 hlen += th->th_off; in sl_compress_tcp()
258 * but costless). The 4th line checks the TCP header length. The 5th line in sl_compress_tcp()
259 * checks IP options, if any. The 6th line checks TCP options, if any. If in sl_compress_tcp()
265 hlen += th->th_off; in sl_compress_tcp()
273 THOFFSET(th) != THOFFSET(oth) || in sl_compress_tcp()
276 (THOFFSET(th) > 5 && in sl_compress_tcp()
277 memcmp(th + 1, oth + 1, (THOFFSET(th) - 5) << 2))) { in sl_compress_tcp()
286 if (__tcp_get_flags(th) & TH_URG) { in sl_compress_tcp()
287 deltaS = ntohs(th->th_urp); in sl_compress_tcp()
290 } else if (th->th_urp != oth->th_urp) { in sl_compress_tcp()
299 deltaS = (u_short) (ntohs(th->th_win) - ntohs(oth->th_win)); in sl_compress_tcp()
304 deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack); in sl_compress_tcp()
312 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp()
369 if (__tcp_get_flags(th) & TH_PUSH) in sl_compress_tcp()
376 deltaA = ntohs(th->th_sum); in sl_compress_tcp()
408 *cp++ = deltaA >> 8; in sl_compress_tcp()
433 register struct tcphdr *th; in sl_uncompress_tcp() local
455 th = (struct tcphdr *) & ((char *) ip)[hlen]; in sl_uncompress_tcp()
456 hlen += THOFFSET(th) << 2; in sl_uncompress_tcp()
500 th = (struct tcphdr *) & ((u_char *) & cs->cs_ip)[hlen]; in sl_uncompress_tcp()
501 th->th_sum = htons((*cp << 8) | cp[1]); in sl_uncompress_tcp()
504 __tcp_set_flags(th, __tcp_get_flags(th) | TH_PUSH); in sl_uncompress_tcp()
506 __tcp_set_flags(th, __tcp_get_flags(th) & ~TH_PUSH); in sl_uncompress_tcp()
513 th->th_ack = htonl(ntohl(th->th_ack) + i); in sl_uncompress_tcp()
514 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp()
519 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp()
525 __tcp_set_flags(th, __tcp_get_flags(th) | TH_URG); in sl_uncompress_tcp()
526 DECODEU(th->th_urp) in sl_uncompress_tcp()
528 __tcp_set_flags(th, __tcp_get_flags(th) & ~TH_URG); in sl_uncompress_tcp()
530 DECODES(th->th_win) in sl_uncompress_tcp()
532 DECODEL(th->th_ack) in sl_uncompress_tcp()
536 DECODEL(th->th_seq) in sl_uncompress_tcp()
546 cs->cs_ip.ip_id, (u_long)ntohl(th->th_seq)); in sl_uncompress_tcp()