]> Git Repo - linux.git/commitdiff
ipv6: fix ip6_sock_set_addr_preferences() typo
authorEric Dumazet <[email protected]>
Mon, 11 Sep 2023 15:42:13 +0000 (15:42 +0000)
committerPaolo Abeni <[email protected]>
Tue, 12 Sep 2023 16:44:18 +0000 (18:44 +0200)
ip6_sock_set_addr_preferences() second argument should be an integer.

SUNRPC attempts to set IPV6_PREFER_SRC_PUBLIC were
translated to IPV6_PREFER_SRC_TMP

Fixes: 18d5ad623275 ("ipv6: add ip6_sock_set_addr_preferences")
Signed-off-by: Eric Dumazet <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Chuck Lever <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
include/net/ipv6.h

index 0675be0f3fa0efc55575bb5b2569dc8a1dbb9f24..fe274c122a563ce3a11b03e49ee71780b3dbda96 100644 (file)
@@ -1360,7 +1360,7 @@ static inline int __ip6_sock_set_addr_preferences(struct sock *sk, int val)
        return 0;
 }
 
-static inline int ip6_sock_set_addr_preferences(struct sock *sk, bool val)
+static inline int ip6_sock_set_addr_preferences(struct sock *sk, int val)
 {
        int ret;
 
This page took 0.058241 seconds and 4 git commands to generate.