diff options
author | 2013-03-28 09:36:03 +0000 | |
---|---|---|
committer | 2013-03-28 09:36:03 +0000 | |
commit | f2033d2fa87cb38cd8d8382bb8e32deb69b9682e (patch) | |
tree | ed6bf91ded36e6f1887216816ce0ff7a81b26541 /regress/lib/libc/asr/bin/getaddrinfo.c | |
parent | More tests for negative seeks, prodded by matthew@ (diff) | |
download | wireguard-openbsd-f2033d2fa87cb38cd8d8382bb8e32deb69b9682e.tar.xz wireguard-openbsd-f2033d2fa87cb38cd8d8382bb8e32deb69b9682e.zip |
add a test case for the icmpv6 issue spotted by naddy
Diffstat (limited to 'regress/lib/libc/asr/bin/getaddrinfo.c')
-rw-r--r-- | regress/lib/libc/asr/bin/getaddrinfo.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/regress/lib/libc/asr/bin/getaddrinfo.c b/regress/lib/libc/asr/bin/getaddrinfo.c index 8c4abf361e1..7b8674aea95 100644 --- a/regress/lib/libc/asr/bin/getaddrinfo.c +++ b/regress/lib/libc/asr/bin/getaddrinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo.c,v 1.1.1.1 2012/07/13 17:49:54 eric Exp $ */ +/* $OpenBSD: getaddrinfo.c,v 1.2 2013/03/28 09:36:03 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -81,6 +81,10 @@ main(int argc, char *argv[]) hints.ai_protocol = IPPROTO_UDP; else if (!strcmp(optarg, "tcp")) hints.ai_protocol = IPPROTO_TCP; + else if (!strcmp(optarg, "icmp")) + hints.ai_protocol = IPPROTO_ICMP; + else if (!strcmp(optarg, "icmpv6")) + hints.ai_protocol = IPPROTO_ICMPV6; else usage(); break; |