aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc')
-rw-r--r--net/sunrpc/clnt.c4
-rw-r--r--net/sunrpc/rpcb_clnt.c6
-rw-r--r--net/sunrpc/svcauth_unix.c5
-rw-r--r--net/sunrpc/xprtsock.c19
4 files changed, 16 insertions, 18 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 4895c341e46d..26f61fd11eab 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -278,8 +278,8 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args)
278 case AF_INET6: { 278 case AF_INET6: {
279 struct sockaddr_in6 *sin = 279 struct sockaddr_in6 *sin =
280 (struct sockaddr_in6 *)args->address; 280 (struct sockaddr_in6 *)args->address;
281 snprintf(servername, sizeof(servername), NIP6_FMT, 281 snprintf(servername, sizeof(servername), "%p6",
282 NIP6(sin->sin6_addr)); 282 &sin->sin6_addr);
283 break; 283 break;
284 } 284 }
285 default: 285 default:
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index 41013dd66ac3..968ec1f66bc3 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -305,9 +305,9 @@ static int rpcb_register_netid6(struct sockaddr_in6 *address_to_register,
305 snprintf(buf, sizeof(buf), "::.%u.%u", 305 snprintf(buf, sizeof(buf), "::.%u.%u",
306 port >> 8, port & 0xff); 306 port >> 8, port & 0xff);
307 else 307 else
308 snprintf(buf, sizeof(buf), NIP6_FMT".%u.%u", 308 snprintf(buf, sizeof(buf), "%p6.%u.%u",
309 NIP6(address_to_register->sin6_addr), 309 &address_to_register->sin6_addr,
310 port >> 8, port & 0xff); 310 port >> 8, port & 0xff);
311 map->r_addr = buf; 311 map->r_addr = buf;
312 312
313 dprintk("RPC: %sregistering [%u, %u, %s, '%s'] with " 313 dprintk("RPC: %sregistering [%u, %u, %s, '%s'] with "
diff --git a/net/sunrpc/svcauth_unix.c b/net/sunrpc/svcauth_unix.c
index f24800f2c098..9a6d0cfd4ce3 100644
--- a/net/sunrpc/svcauth_unix.c
+++ b/net/sunrpc/svcauth_unix.c
@@ -168,7 +168,7 @@ static void ip_map_request(struct cache_detail *cd,
168 ntohl(im->m_addr.s6_addr32[3]) >> 8 & 0xff, 168 ntohl(im->m_addr.s6_addr32[3]) >> 8 & 0xff,
169 ntohl(im->m_addr.s6_addr32[3]) >> 0 & 0xff); 169 ntohl(im->m_addr.s6_addr32[3]) >> 0 & 0xff);
170 } else { 170 } else {
171 snprintf(text_addr, 40, NIP6_FMT, NIP6(im->m_addr)); 171 snprintf(text_addr, 40, "%p6", &im->m_addr);
172 } 172 }
173 qword_add(bpp, blen, im->m_class); 173 qword_add(bpp, blen, im->m_class);
174 qword_add(bpp, blen, text_addr); 174 qword_add(bpp, blen, text_addr);
@@ -286,8 +286,7 @@ static int ip_map_show(struct seq_file *m,
286 ntohl(addr.s6_addr32[3]) >> 0 & 0xff, 286 ntohl(addr.s6_addr32[3]) >> 0 & 0xff,
287 dom); 287 dom);
288 } else { 288 } else {
289 seq_printf(m, "%s " NIP6_FMT " %s\n", 289 seq_printf(m, "%s %p6 %s\n", im->m_class, &addr, dom);
290 im->m_class, NIP6(addr), dom);
291 } 290 }
292 return 0; 291 return 0;
293} 292}
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 59155aebd3b9..349852238957 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -341,8 +341,7 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
341 341
342 buf = kzalloc(40, GFP_KERNEL); 342 buf = kzalloc(40, GFP_KERNEL);
343 if (buf) { 343 if (buf) {
344 snprintf(buf, 40, NIP6_FMT, 344 snprintf(buf, 40, "%p6",&addr->sin6_addr);
345 NIP6(addr->sin6_addr));
346 } 345 }
347 xprt->address_strings[RPC_DISPLAY_ADDR] = buf; 346 xprt->address_strings[RPC_DISPLAY_ADDR] = buf;
348 347
@@ -357,8 +356,8 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
357 356
358 buf = kzalloc(64, GFP_KERNEL); 357 buf = kzalloc(64, GFP_KERNEL);
359 if (buf) { 358 if (buf) {
360 snprintf(buf, 64, "addr="NIP6_FMT" port=%u proto=%s", 359 snprintf(buf, 64, "addr=%p6 port=%u proto=%s",
361 NIP6(addr->sin6_addr), 360 &addr->sin6_addr,
362 ntohs(addr->sin6_port), 361 ntohs(addr->sin6_port),
363 protocol); 362 protocol);
364 } 363 }
@@ -379,10 +378,10 @@ static void xs_format_ipv6_peer_addresses(struct rpc_xprt *xprt,
379 378
380 buf = kzalloc(50, GFP_KERNEL); 379 buf = kzalloc(50, GFP_KERNEL);
381 if (buf) { 380 if (buf) {
382 snprintf(buf, 50, NIP6_FMT".%u.%u", 381 snprintf(buf, 50, "%p6.%u.%u",
383 NIP6(addr->sin6_addr), 382 &addr->sin6_addr,
384 ntohs(addr->sin6_port) >> 8, 383 ntohs(addr->sin6_port) >> 8,
385 ntohs(addr->sin6_port) & 0xff); 384 ntohs(addr->sin6_port) & 0xff);
386 } 385 }
387 xprt->address_strings[RPC_DISPLAY_UNIVERSAL_ADDR] = buf; 386 xprt->address_strings[RPC_DISPLAY_UNIVERSAL_ADDR] = buf;
388 387
@@ -1408,8 +1407,8 @@ static int xs_bind6(struct sock_xprt *transport, struct socket *sock)
1408 if (port > last) 1407 if (port > last)
1409 nloop++; 1408 nloop++;
1410 } while (err == -EADDRINUSE && nloop != 2); 1409 } while (err == -EADDRINUSE && nloop != 2);
1411 dprintk("RPC: xs_bind6 "NIP6_FMT":%u: %s (%d)\n", 1410 dprintk("RPC: xs_bind6 %p6:%u: %s (%d)\n",
1412 NIP6(myaddr.sin6_addr), port, err ? "failed" : "ok", err); 1411 &myaddr.sin6_addr, port, err ? "failed" : "ok", err);
1413 return err; 1412 return err;
1414} 1413}
1415 1414