Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103714324
D21364.id61129.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21364.id61129.diff
View Options
Index: head/sbin/ping/ping.8
===================================================================
--- head/sbin/ping/ping.8
+++ head/sbin/ping/ping.8
@@ -28,7 +28,7 @@
.\" @(#)ping.8 8.2 (Berkeley) 12/11/93
.\" $FreeBSD$
.\"
-.Dd August 21, 2019
+.Dd August 22, 2019
.Dt PING 8
.Os
.Sh NAME
@@ -160,11 +160,9 @@
.It Fl H
Hostname output.
Try to do a reverse DNS lookup when displaying addresses.
-This is the opposite of
-.Fl n ,
-and it is the default behavior.
-.Nm
-utility tries reverse-lookup by default.
+This is the opposite of the
+.Fl n
+option.
.It Fl h Ar sweepincrsize
Specify the number of bytes to increment the size of
.Tn ICMP
@@ -228,6 +226,9 @@
.It Fl n
Numeric output only.
No attempt will be made to lookup symbolic names for host addresses.
+This is the opposite of
+.Fl H ,
+and it is the default behavior.
.It Fl o
Exit successfully after receiving one reply packet.
.It Fl P Ar policy
Index: head/sbin/ping/ping.c
===================================================================
--- head/sbin/ping/ping.c
+++ head/sbin/ping/ping.c
@@ -261,6 +261,8 @@
#endif
cap_rights_t rights;
+ options |= F_NUMERIC;
+
/*
* Do the stuff that we need root priv's for *first*, and
* then drop our setuid bit. Save error reporting for
Index: head/sbin/ping/tests/ping_c1_s56_t1.out
===================================================================
--- head/sbin/ping/tests/ping_c1_s56_t1.out
+++ head/sbin/ping/tests/ping_c1_s56_t1.out
@@ -1,5 +1,5 @@
PING localhost: 56 data bytes
-64 bytes from localhost: icmp_seq=0 ttl= time= ms
+64 bytes from: icmp_seq=0 ttl= time= ms
--- localhost ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 9:38 AM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14925534
Default Alt Text
D21364.id61129.diff (1 KB)
Attached To
Mode
D21364: ping: do numeric-only output by default
Attached
Detach File
Event Timeline
Log In to Comment