aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2016-03-18 15:06:50 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2016-03-18 15:06:50 +0000
commitf7fc5c91540f292e7ff89f2d4f9a676951ea3803 (patch)
tree3725f3a079a38e5697748823fbb8b5c9b3e83d7b /sbin/ping
parent637733b170c8a0c14c3d95e2f1bf194836d18dac (diff)
downloadsrc-f7fc5c91540f292e7ff89f2d4f9a676951ea3803.tar.gz
src-f7fc5c91540f292e7ff89f2d4f9a676951ea3803.zip
o No need to resolve a mask that we get with ICMP_MASKREPLY,
pass it directly to inet_ntoa(3).
Notes
Notes: svn path=/head/; revision=297024
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index a5f860271383..5b276fcbefcc 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1201,7 +1201,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from, struct timeval *tv)
if (options & F_MASK) {
/* Just prentend this cast isn't ugly */
(void)printf(" mask=%s",
- pr_addr(*(struct in_addr *)&(icp->icmp_mask)));
+ inet_ntoa(*(struct in_addr *)&(icp->icmp_mask)));
}
if (options & F_TIME) {
(void)printf(" tso=%s", pr_ntime(icp->icmp_otime));