summaryrefslogtreecommitdiff
path: root/zebra/if_ioctl_solaris.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-01-13 07:57:57 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-13 08:05:50 -0500
commit56c1f7d852de98aa5d752f9c7777ece660c26fdb (patch)
tree7cac20e7ea1d0ec6dd46a5398cd9b43643071b52 /zebra/if_ioctl_solaris.c
parentb98f56422e692217bb149aaa78fda77e07097658 (diff)
frr: Remove HAVE_IPV6 from code base
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/if_ioctl_solaris.c')
-rw-r--r--zebra/if_ioctl_solaris.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/zebra/if_ioctl_solaris.c b/zebra/if_ioctl_solaris.c
index 0e727b9dc4..f27dc89007 100644
--- a/zebra/if_ioctl_solaris.c
+++ b/zebra/if_ioctl_solaris.c
@@ -177,12 +177,7 @@ calculate_lifc_len: /* must hold privileges to enter here */
if (lifreq->lifr_addr.ss_family == AF_INET6)
{
-#ifdef HAVE_IPV6
ifp->flags |= IFF_IPV6;
-#else
- lifreq++;
- continue;
-#endif /* HAVE_IPV6 */
}
if_add_update (ifp);
@@ -309,7 +304,6 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr, const char *label)
dest_pnt = (char *) &SIN (&dest)->sin_addr;
}
}
-#ifdef HAVE_IPV6
else if (af == AF_INET6)
{
if (if_ioctl_ipv6 (SIOCGLIFSUBNET, (caddr_t) & lifreq) < 0)
@@ -325,17 +319,14 @@ if_get_addr (struct interface *ifp, struct sockaddr *addr, const char *label)
prefixlen = lifreq.lifr_addrlen;
}
}
-#endif /* HAVE_IPV6 */
/* Set address to the interface. */
if (af == AF_INET)
connected_add_ipv4 (ifp, flags, &SIN (addr)->sin_addr, prefixlen,
(struct in_addr *) dest_pnt, label);
-#ifdef HAVE_IPV6
else if (af == AF_INET6)
connected_add_ipv6 (ifp, flags, &SIN6 (addr)->sin6_addr, prefixlen,
(struct in6_addr *) dest_pnt, label);
-#endif /* HAVE_IPV6 */
return 0;
}
@@ -367,7 +358,6 @@ interface_list (struct zebra_ns *zns)
struct connected *
if_lookup_linklocal (struct interface *ifp)
{
-#ifdef HAVE_IPV6
struct listnode *node;
struct connected *ifc;
@@ -380,7 +370,6 @@ if_lookup_linklocal (struct interface *ifp)
(IN6_IS_ADDR_LINKLOCAL (&ifc->address->u.prefix6)))
return ifc;
}
-#endif /* HAVE_IPV6 */
return NULL;
}