diff options
| author | eric <> | 2013-03-28 09:36:03 +0000 |
|---|---|---|
| committer | eric <> | 2013-03-28 09:36:03 +0000 |
| commit | eb83684f4cf605110b51e4f93283d71a7c555523 (patch) | |
| tree | b08c95a54d60ce4230e6540d9add290c976472f0 /src/regress/lib/libc/asr/bin/getaddrinfo.c | |
| parent | 5d7a61f2e3d41f6fb2ec23249869cb430c508a4c (diff) | |
| download | openbsd-eb83684f4cf605110b51e4f93283d71a7c555523.tar.gz openbsd-eb83684f4cf605110b51e4f93283d71a7c555523.tar.bz2 openbsd-eb83684f4cf605110b51e4f93283d71a7c555523.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.c | 6 |
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; |
