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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297024
@ -1201,7 +1201,7 @@ pr_pack(char *buf, int cc, struct sockaddr_in *from, struct timeval *tv)
|
|||||||
if (options & F_MASK) {
|
if (options & F_MASK) {
|
||||||
/* Just prentend this cast isn't ugly */
|
/* Just prentend this cast isn't ugly */
|
||||||
(void)printf(" mask=%s",
|
(void)printf(" mask=%s",
|
||||||
pr_addr(*(struct in_addr *)&(icp->icmp_mask)));
|
inet_ntoa(*(struct in_addr *)&(icp->icmp_mask)));
|
||||||
}
|
}
|
||||||
if (options & F_TIME) {
|
if (options & F_TIME) {
|
||||||
(void)printf(" tso=%s", pr_ntime(icp->icmp_otime));
|
(void)printf(" tso=%s", pr_ntime(icp->icmp_otime));
|
||||||
|
Loading…
Reference in New Issue
Block a user