aboutsummaryrefslogtreecommitdiff
path: root/dhcp6relay.c
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2006-12-04 15:18:39 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:36 +0200
commitb73261b6f5f0dbb2c0fee2c52278dfbd0ee4aba3 (patch)
tree76254482d4374ed22b5785a9a70bd10045c390fd /dhcp6relay.c
parent11a1e58f11dfef67d01aebf89232f93f12207bc0 (diff)
introduced a HAVE_SA_LEN macro to support OSes (other than linux) without length field in sockaddr_*
Diffstat (limited to 'dhcp6relay.c')
-rw-r--r--dhcp6relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp6relay.c b/dhcp6relay.c
index 738074a..e05a47c 100644
--- a/dhcp6relay.c
+++ b/dhcp6relay.c
@@ -270,7 +270,7 @@ make_prefix(pstr0)
/* fill in each member of the entry */
memset(pent, 0, sizeof (*pent));
pent->paddr.sin6_family = AF_INET6;
-#ifndef __linux__
+#ifdef HAVE_SA_LEN
pent->paddr.sin6_len = sizeof (struct sockaddr_in6);
#endif
pent->paddr.sin6_addr = paddr;