diff options
Diffstat (limited to 'include/net/ip6_checksum.h')
-rw-r--r-- | include/net/ip6_checksum.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/ip6_checksum.h b/include/net/ip6_checksum.h index 7686e3f5033d..9e3c540c1b11 100644 --- a/include/net/ip6_checksum.h +++ b/include/net/ip6_checksum.h | |||
@@ -66,12 +66,14 @@ static inline void __tcp_v6_send_check(struct sk_buff *skb, | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | 68 | ||
69 | #if IS_ENABLED(CONFIG_IPV6) | ||
69 | static inline void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb) | 70 | static inline void tcp_v6_send_check(struct sock *sk, struct sk_buff *skb) |
70 | { | 71 | { |
71 | struct ipv6_pinfo *np = inet6_sk(sk); | 72 | struct ipv6_pinfo *np = inet6_sk(sk); |
72 | 73 | ||
73 | __tcp_v6_send_check(skb, &np->saddr, &np->daddr); | 74 | __tcp_v6_send_check(skb, &np->saddr, &sk->sk_v6_daddr); |
74 | } | 75 | } |
76 | #endif | ||
75 | 77 | ||
76 | int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto); | 78 | int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto); |
77 | #endif | 79 | #endif |