Lines Matching refs:skb
44 static inline __wsum ip6_compute_pseudo(struct sk_buff *skb, int proto)
46 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr,
47 &ipv6_hdr(skb)->daddr,
48 skb->len, proto, 0));
51 static inline __wsum ip6_gro_compute_pseudo(struct sk_buff *skb, int proto)
53 const struct ipv6hdr *iph = skb_gro_network_header(skb);
56 skb_gro_len(skb), proto, 0));
67 static inline void __tcp_v6_send_check(struct sk_buff *skb,
71 struct tcphdr *th = tcp_hdr(skb);
73 if (skb->ip_summed == CHECKSUM_PARTIAL) {
74 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0);
75 skb->csum_start = skb_transport_header(skb) - skb->head;
76 skb->csum_offset = offsetof(struct tcphdr, check);
78 th->check = tcp_v6_check(skb->len, saddr, daddr,
80 skb->csum));
85 static inline void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb)
89 __tcp_v6_send_check(skb, &np->saddr, &sk->sk_v6_daddr);
101 void udp6_set_csum(bool nocheck, struct sk_buff *skb,
105 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);