o No need to resolve a mask that we get with ICMP_MASKREPLY,

pass it directly to inet_ntoa(3).
This commit is contained in:
Maxim Konovalov 2016-03-18 15:06:50 +00:00
parent 637733b170
commit f7fc5c9154
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297024

View File

@ -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));