aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svcsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r--net/sunrpc/svcsock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c
index 9c9caaa5e0d3..b6e59f0a9475 100644
--- a/net/sunrpc/svcsock.c
+++ b/net/sunrpc/svcsock.c
@@ -291,12 +291,14 @@ static int svc_one_sock_name(struct svc_sock *svsk, char *buf, int remaining)
291 &inet_sk(sk)->inet_rcv_saddr, 291 &inet_sk(sk)->inet_rcv_saddr,
292 inet_sk(sk)->inet_num); 292 inet_sk(sk)->inet_num);
293 break; 293 break;
294#if IS_ENABLED(CONFIG_IPV6)
294 case PF_INET6: 295 case PF_INET6:
295 len = snprintf(buf, remaining, "ipv6 %s %pI6 %d\n", 296 len = snprintf(buf, remaining, "ipv6 %s %pI6 %d\n",
296 proto_name, 297 proto_name,
297 &inet6_sk(sk)->rcv_saddr, 298 &sk->sk_v6_rcv_saddr,
298 inet_sk(sk)->inet_num); 299 inet_sk(sk)->inet_num);
299 break; 300 break;
301#endif
300 default: 302 default:
301 len = snprintf(buf, remaining, "*unknown-%d*\n", 303 len = snprintf(buf, remaining, "*unknown-%d*\n",
302 sk->sk_family); 304 sk->sk_family);