summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/asr/bin/getaddrinfo.c
diff options
context:
space:
mode:
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;