Lines Matching refs:th

354 tcp_ecn_make_synack(const struct request_sock *req, struct tcphdr *th,  in tcp_ecn_make_synack()  argument
358 th->ece = 1; in tcp_ecn_make_synack()
916 struct tcphdr *th; in tcp_transmit_skb() local
966 th = tcp_hdr(skb); in tcp_transmit_skb()
967 th->source = inet->inet_sport; in tcp_transmit_skb()
968 th->dest = inet->inet_dport; in tcp_transmit_skb()
969 th->seq = htonl(tcb->seq); in tcp_transmit_skb()
970 th->ack_seq = htonl(tp->rcv_nxt); in tcp_transmit_skb()
971 *(((__be16 *)th) + 6) = htons(((tcp_header_size >> 2) << 12) | in tcp_transmit_skb()
978 th->window = htons(min(tp->rcv_wnd, 65535U)); in tcp_transmit_skb()
980 th->window = htons(tcp_select_window(sk)); in tcp_transmit_skb()
982 th->check = 0; in tcp_transmit_skb()
983 th->urg_ptr = 0; in tcp_transmit_skb()
988 th->urg_ptr = htons(tp->snd_up - tcb->seq); in tcp_transmit_skb()
989 th->urg = 1; in tcp_transmit_skb()
991 th->urg_ptr = htons(0xFFFF); in tcp_transmit_skb()
992 th->urg = 1; in tcp_transmit_skb()
996 tcp_options_write((__be32 *)(th + 1), tp, &opts); in tcp_transmit_skb()
2955 struct tcphdr *th; in tcp_make_synack() local
2988 foc) + sizeof(*th); in tcp_make_synack()
2993 th = tcp_hdr(skb); in tcp_make_synack()
2994 memset(th, 0, sizeof(struct tcphdr)); in tcp_make_synack()
2995 th->syn = 1; in tcp_make_synack()
2996 th->ack = 1; in tcp_make_synack()
2997 tcp_ecn_make_synack(req, th, sk); in tcp_make_synack()
2998 th->source = htons(ireq->ir_num); in tcp_make_synack()
2999 th->dest = ireq->ir_rmt_port; in tcp_make_synack()
3006 th->seq = htonl(TCP_SKB_CB(skb)->seq); in tcp_make_synack()
3008 th->ack_seq = htonl(tcp_rsk(req)->rcv_nxt); in tcp_make_synack()
3011 th->window = htons(min(req->rcv_wnd, 65535U)); in tcp_make_synack()
3012 tcp_options_write((__be32 *)(th + 1), tp, &opts); in tcp_make_synack()
3013 th->doff = (tcp_header_size >> 2); in tcp_make_synack()