Lines Matching refs:tcphdr
58 static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len,
421 static __inline__ u16 tcp_v6_check(struct tcphdr *th, int len, in tcp_v6_check()
699 tp->mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_connect()
731 struct tcphdr *th = (struct tcphdr *)(skb->data+offset); in tcp_v6_err()
899 struct tcphdr *th = skb->h.th; in tcp_v6_send_synack()
948 static void tcp_v6_send_check(struct sock *sk, struct tcphdr *th, int len, in tcp_v6_send_check()
955 skb->csum = offsetof(struct tcphdr, check); in tcp_v6_send_check()
966 struct tcphdr *th = skb->h.th, *t1; in tcp_v6_send_reset()
981 buff = alloc_skb(MAX_HEADER + sizeof(struct ipv6hdr) + sizeof(struct tcphdr), GFP_ATOMIC); in tcp_v6_send_reset()
985 skb_reserve(buff, MAX_HEADER + sizeof(struct ipv6hdr) + sizeof(struct tcphdr)); in tcp_v6_send_reset()
987 t1 = (struct tcphdr *) skb_push(buff,sizeof(struct tcphdr)); in tcp_v6_send_reset()
1035 struct tcphdr *th = skb->h.th, *t1; in tcp_v6_send_ack()
1038 int tot_len = sizeof(struct tcphdr); in tcp_v6_send_ack()
1049 t1 = (struct tcphdr *) skb_push(buff,tot_len); in tcp_v6_send_ack()
1117 struct tcphdr *th = skb->h.th; in tcp_v6_hnd_req()
1201 tp.mss_clamp = IPV6_MIN_MTU - sizeof(struct tcphdr) - sizeof(struct ipv6hdr); in tcp_v6_conn_request()
1563 struct tcphdr *th; in tcp_v6_rcv()
1575 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp_v6_rcv()
1580 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv()