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:
parent
637733b170
commit
f7fc5c9154
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user