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