Lines Matching refs:tcphdr
83 void tcp_v4_send_check(struct sock *sk, struct tcphdr *th, int len,
986 struct tcphdr *th = (struct tcphdr*)(skb->data+(iph->ihl<<2)); in tcp_v4_err()
1129 void tcp_v4_send_check(struct sock *sk, struct tcphdr *th, int len, in tcp_v4_send_check()
1134 skb->csum = offsetof(struct tcphdr, check); in tcp_v4_send_check()
1156 struct tcphdr *th = skb->h.th; in tcp_v4_send_reset()
1157 struct tcphdr rth; in tcp_v4_send_reset()
1168 memset(&rth, 0, sizeof(struct tcphdr)); in tcp_v4_send_reset()
1171 rth.doff = sizeof(struct tcphdr)/4; in tcp_v4_send_reset()
1187 sizeof(struct tcphdr), in tcp_v4_send_reset()
1191 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_reset()
1206 struct tcphdr *th = skb->h.th; in tcp_v4_send_ack()
1208 struct tcphdr th; in tcp_v4_send_ack()
1213 memset(&rep.th, 0, sizeof(struct tcphdr)); in tcp_v4_send_ack()
1243 arg.csumoffset = offsetof(struct tcphdr, check) / 2; in tcp_v4_send_ack()
1307 struct tcphdr *th = skb->h.th; in tcp_v4_send_synack()
1593 struct tcphdr *th = skb->h.th; in tcp_v4_hnd_req()
1715 struct tcphdr *th; in tcp_v4_rcv()
1725 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp_v4_rcv()
1730 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v4_rcv()