Lines Matching defs:th
256 * value can be stuffed directly into th->window for an outgoing
318 TCP_ECN_make_synack(struct request_sock *req, struct tcphdr *th)
321 th->ece = 1;
804 struct tcphdr *th;
844 th = tcp_hdr(skb);
845 th->source = inet->inet_sport;
846 th->dest = inet->inet_dport;
847 th->seq = htonl(tcb->seq);
848 th->ack_seq = htonl(tp->rcv_nxt);
849 *(((__be16 *)th) + 6) = htons(((tcp_header_size >> 2) << 12) |
856 th->window = htons(min(tp->rcv_wnd, 65535U));
858 th->window = htons(tcp_select_window(sk));
860 th->check = 0;
861 th->urg_ptr = 0;
866 th->urg_ptr = htons(tp->snd_up - tcb->seq);
867 th->urg = 1;
869 th->urg_ptr = htons(0xFFFF);
870 th->urg = 1;
874 tcp_options_write((__be32 *)(th + 1), tp, &opts);
1853 * since header prediction assumes th->window stays fixed.
1855 * Strictly speaking, keeping th->window fixed violates the receiver
2413 struct tcphdr *th;
2459 + sizeof(*th);
2464 th = tcp_hdr(skb);
2465 memset(th, 0, sizeof(struct tcphdr));
2466 th->syn = 1;
2467 th->ack = 1;
2468 TCP_ECN_make_synack(req, th);
2469 th->source = ireq->loc_port;
2470 th->dest = ireq->rmt_port;
2500 *tail-- ^= (((__force u32)th->dest << 16) | (__force u32)th->source);
2511 th->seq = htonl(TCP_SKB_CB(skb)->seq);
2512 th->ack_seq = htonl(tcp_rsk(req)->rcv_isn + 1);
2515 th->window = htons(min(req->rcv_wnd, 65535U));
2516 tcp_options_write((__be32 *)(th + 1), tp, &opts);
2517 th->doff = (tcp_header_size >> 2);