aboutsummaryrefslogtreecommitdiff
path: root/dhcp6c.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2007-02-27 14:21:41 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:36 +0200
commitfe2c74572f875332b461ba2a17a594a7ee4eb2d3 (patch)
tree84ca26e3f0168158823d7c741479e37ba069a862 /dhcp6c.c
parentfcdc0798bb2be5fa00427240afda6bdfd3d0a392 (diff)
supported compilation on Solaris (contributed by James Carlson)
Diffstat (limited to 'dhcp6c.c')
-rw-r--r--dhcp6c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcp6c.c b/dhcp6c.c
index 2c98e96..df4643f 100644
--- a/dhcp6c.c
+++ b/dhcp6c.c
@@ -317,12 +317,14 @@ client6_init()
strerror(errno));
exit(1);
}
+#ifdef IPV6_V6ONLY
if (setsockopt(sock, IPPROTO_IPV6, IPV6_V6ONLY,
&on, sizeof(on)) < 0) {
dprintf(LOG_ERR, FNAME, "setsockopt(IPV6_V6ONLY): %s",
strerror(errno));
exit(1);
}
+#endif
/*
* According RFC3315 2.2, only the incoming port should be bound to UDP