Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110675116
D35271.id106206.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
536 B
Referenced Files
None
Subscribers
None
D35271.id106206.diff
View Options
Index: sbin/ping/main.c
===================================================================
--- sbin/ping/main.c
+++ sbin/ping/main.c
@@ -93,6 +93,18 @@
case '6':
ipv6 = true;
break;
+#endif
+#if defined(INET) && defined(INET6)
+ case 'S':
+ /*
+ * If -S is given with a numeric parameter,
+ * force use of the corresponding version.
+ */
+ if (inet_pton(AF_INET, optarg, &a) == 1)
+ ipv4 = true;
+ else if (inet_pton(AF_INET6, optarg, &a) == 1)
+ ipv6 = true;
+ break;
#endif
default:
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 6:56 PM (4 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16777335
Default Alt Text
D35271.id106206.diff (536 B)
Attached To
Mode
D35271: ping: if -S srcaddr uses a numeric address, use that protocol
Attached
Detach File
Event Timeline
Log In to Comment