blob: 6fd167613ed508dc2c1520da71cd28829d34c200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ae,v 1.4 2006/10/04 12:07:53 obache Exp $
--- sample/server.c.orig 2004-03-29 09:56:40.000000000 -0500
+++ sample/server.c
@@ -117,9 +117,9 @@ int *listensock(const char *port, const
}
#if defined(IPV6_V6ONLY) && !(defined(__FreeBSD__) && __FreeBSD__ < 3)
if (r->ai_family == AF_INET6) {
- if (setsockopt(*sock, IPPROTO_IPV6, IPV6_BINDV6ONLY,
+ if (setsockopt(*sock, IPPROTO_IPV6, IPV6_V6ONLY,
(void *) &on, sizeof(on)) < 0) {
- perror("setsockopt (IPV6_BINDV6ONLY)");
+ perror("setsockopt (IPV6_V6ONLY)");
close(*sock);
continue;
}
|