Lines Matching refs:skb
39 static inline __wsum ip6_compute_pseudo(struct sk_buff *skb, int proto) in ip6_compute_pseudo() argument
41 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in ip6_compute_pseudo()
42 &ipv6_hdr(skb)->daddr, in ip6_compute_pseudo()
43 skb->len, proto, 0)); in ip6_compute_pseudo()
54 static inline void __tcp_v6_send_check(struct sk_buff *skb, in __tcp_v6_send_check() argument
58 struct tcphdr *th = tcp_hdr(skb); in __tcp_v6_send_check()
60 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check()
61 skb->csum_start = skb_transport_header(skb) - skb->head; in __tcp_v6_send_check()
62 skb->csum_offset = offsetof(struct tcphdr, check); in __tcp_v6_send_check()
65 static inline void tcp_v6_gso_csum_prep(struct sk_buff *skb) in tcp_v6_gso_csum_prep() argument
67 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp_v6_gso_csum_prep()
68 struct tcphdr *th = tcp_hdr(skb); in tcp_v6_gso_csum_prep()
82 void udp6_set_csum(bool nocheck, struct sk_buff *skb,
86 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);