Lines Matching refs:th

360 tcp_ecn_make_synack(const struct request_sock *req, struct tcphdr *th)  in tcp_ecn_make_synack()  argument
363 th->ece = 1; in tcp_ecn_make_synack()
913 struct tcphdr *th; in tcp_transmit_skb() local
960 th = tcp_hdr(skb); in tcp_transmit_skb()
961 th->source = inet->inet_sport; in tcp_transmit_skb()
962 th->dest = inet->inet_dport; in tcp_transmit_skb()
963 th->seq = htonl(tcb->seq); in tcp_transmit_skb()
964 th->ack_seq = htonl(tp->rcv_nxt); in tcp_transmit_skb()
965 *(((__be16 *)th) + 6) = htons(((tcp_header_size >> 2) << 12) | in tcp_transmit_skb()
972 th->window = htons(min(tp->rcv_wnd, 65535U)); in tcp_transmit_skb()
974 th->window = htons(tcp_select_window(sk)); in tcp_transmit_skb()
976 th->check = 0; in tcp_transmit_skb()
977 th->urg_ptr = 0; in tcp_transmit_skb()
982 th->urg_ptr = htons(tp->snd_up - tcb->seq); in tcp_transmit_skb()
983 th->urg = 1; in tcp_transmit_skb()
985 th->urg_ptr = htons(0xFFFF); in tcp_transmit_skb()
986 th->urg = 1; in tcp_transmit_skb()
990 tcp_options_write((__be32 *)(th + 1), tp, &opts); in tcp_transmit_skb()
2955 struct tcphdr *th; in tcp_make_synack() local
2997 sizeof(*th); in tcp_make_synack()
3002 th = tcp_hdr(skb); in tcp_make_synack()
3003 memset(th, 0, sizeof(struct tcphdr)); in tcp_make_synack()
3004 th->syn = 1; in tcp_make_synack()
3005 th->ack = 1; in tcp_make_synack()
3006 tcp_ecn_make_synack(req, th); in tcp_make_synack()
3007 th->source = htons(ireq->ir_num); in tcp_make_synack()
3008 th->dest = ireq->ir_rmt_port; in tcp_make_synack()
3015 th->seq = htonl(TCP_SKB_CB(skb)->seq); in tcp_make_synack()
3017 th->ack_seq = htonl(tcp_rsk(req)->rcv_nxt); in tcp_make_synack()
3020 th->window = htons(min(req->rsk_rcv_wnd, 65535U)); in tcp_make_synack()
3021 tcp_options_write((__be32 *)(th + 1), NULL, &opts); in tcp_make_synack()
3022 th->doff = (tcp_header_size >> 2); in tcp_make_synack()