summaryrefslogtreecommitdiff
path: root/sbin/ping6/ping6.c
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-02-28 14:06:40 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-02-28 14:06:40 +0000
commit8e47366b37e1901579809b0ee46ac8ecf5116e2e (patch)
tree6c2869d0ae752097f8722e9daaa32211d21020c7 /sbin/ping6/ping6.c
parent1ea3d5ffc5f09680f16ba82e665a04ef15e56aa0 (diff)
add support for "ping6 -a c".
(new feature in draft-ietf-ipngwg-icmp-name-lookups-05.txt)
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r--sbin/ping6/ping6.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index a8072b51923..56a14977c5d 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.3 2000/02/16 05:59:20 itojun Exp $ */
+/* $OpenBSD: ping6.c,v 1.4 2000/02/28 14:06:39 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -303,6 +303,10 @@ main(argc, argv)
case 'a':
naflags |= NI_NODEADDR_FLAG_ALL;
break;
+ case 'c':
+ case 'C':
+ naflags |= NI_NODEADDR_FLAG_COMPAT;
+ break;
case 'l':
case 'L':
naflags |= NI_NODEADDR_FLAG_LINKLOCAL;
@@ -1808,8 +1812,8 @@ usage()
"AE"
#endif
#endif
- "] [-a [alsg]] [-b sockbufsiz] [-c count] [-I interface]\n\
- [-i wait] [-l preload] [-p pattern] [-S sourceaddr]\n\
+ "] [-a [aAclsg]] [-b sockbufsiz] [-c count] \n\
+ [-I interface] [-i wait] [-l preload] [-p pattern] [-S sourceaddr]\n\
[-s packetsize] [-h hoplimit] [hops...] host\n");
exit(1);
}