summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/asr/bin/getaddrinfo.c
diff options
context:
space:
mode:
authoreric <>2013-03-28 09:36:03 +0000
committereric <>2013-03-28 09:36:03 +0000
commitff0d1de40e1753f3ad3f490475d4624605ee6d92 (patch)
treeb08c95a54d60ce4230e6540d9add290c976472f0 /src/regress/lib/libc/asr/bin/getaddrinfo.c
parent4ac463dc130bdb00f62e4ece898870cfe8b51ec2 (diff)
downloadopenbsd-ff0d1de40e1753f3ad3f490475d4624605ee6d92.tar.gz
openbsd-ff0d1de40e1753f3ad3f490475d4624605ee6d92.tar.bz2
openbsd-ff0d1de40e1753f3ad3f490475d4624605ee6d92.zip
add a test case for the icmpv6 issue spotted by naddy
Diffstat (limited to 'src/regress/lib/libc/asr/bin/getaddrinfo.c')
-rw-r--r--src/regress/lib/libc/asr/bin/getaddrinfo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regress/lib/libc/asr/bin/getaddrinfo.c b/src/regress/lib/libc/asr/bin/getaddrinfo.c
index 8c4abf361e..7b8674aea9 100644
--- a/src/regress/lib/libc/asr/bin/getaddrinfo.c
+++ b/src/regress/lib/libc/asr/bin/getaddrinfo.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getaddrinfo.c,v 1.1.1.1 2012/07/13 17:49:54 eric Exp $ */ 1/* $OpenBSD: getaddrinfo.c,v 1.2 2013/03/28 09:36:03 eric Exp $ */
2/* 2/*
3 * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> 3 * Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
4 * 4 *
@@ -81,6 +81,10 @@ main(int argc, char *argv[])
81 hints.ai_protocol = IPPROTO_UDP; 81 hints.ai_protocol = IPPROTO_UDP;
82 else if (!strcmp(optarg, "tcp")) 82 else if (!strcmp(optarg, "tcp"))
83 hints.ai_protocol = IPPROTO_TCP; 83 hints.ai_protocol = IPPROTO_TCP;
84 else if (!strcmp(optarg, "icmp"))
85 hints.ai_protocol = IPPROTO_ICMP;
86 else if (!strcmp(optarg, "icmpv6"))
87 hints.ai_protocol = IPPROTO_ICMPV6;
84 else 88 else
85 usage(); 89 usage();
86 break; 90 break;