summaryrefslogtreecommitdiff
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorhasso <hasso>2003-05-25 21:04:54 +0000
committerhasso <hasso>2003-05-25 21:04:54 +0000
commit726f9b2bbdd5a607f7b0a10a64547739b807e361 (patch)
tree9c46a6ce71cf4ea96553a85a231e38b462b3dee0 /zebra/ioctl.c
parent71c0fb50fe75928f8fbe1bbff1995d9d91b3702b (diff)
Last fixes from 6Wind patch.
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r--zebra/ioctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c
index 13afba29..3e5d1d2f 100644
--- a/zebra/ioctl.c
+++ b/zebra/ioctl.c
@@ -474,8 +474,10 @@ if_prefix_add_ipv6 (struct interface *ifp, struct connected *ifc)
#endif
memcpy (&addreq.ifra_prefixmask, &mask, sizeof (struct sockaddr_in6));
+#ifdef HAVE_IFRA_LIFETIME
addreq.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
addreq.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
+#endif
ret = if_ioctl_ipv6 (SIOCAIFADDR_IN6, (caddr_t) &addreq);
if (ret < 0)
@@ -513,8 +515,10 @@ if_prefix_delete_ipv6 (struct interface *ifp, struct connected *ifc)
#endif
memcpy (&addreq.ifra_prefixmask, &mask, sizeof (struct sockaddr_in6));
+#ifdef HAVE_IFRA_LIFETIME
addreq.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
addreq.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
+#endif
ret = if_ioctl_ipv6 (SIOCDIFADDR_IN6, (caddr_t) &addreq);
if (ret < 0)