summaryrefslogtreecommitdiff
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-09-08 23:59:18 -0400
committerDonald Sharp <sharpd@nvidia.com>2020-09-21 10:02:20 -0400
commitcae8bc967cf7c93b7924ae4aaa05a99dfe345c78 (patch)
treec7de335da42ae46a645cecee414b85c8f991f79e /zebra/ioctl.c
parent1f79037b72f0ec93153f9505a11bce9812429993 (diff)
*: Remove solaris from FRR
The Solaris code has gone through a deprecation cycle. No-one has said anything to us and worse of all we don't have any test systems running Solaris to know if we are making changes that are breaking on Solaris. Remove it from the system so we can clean up a bit. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r--zebra/ioctl.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c
index b461a08881..11b252fc18 100644
--- a/zebra/ioctl.c
+++ b/zebra/ioctl.c
@@ -36,8 +36,6 @@
#include "zebra/zebra_errors.h"
#include "zebra/debug.h"
-#ifndef SUNOS_5
-
#ifdef HAVE_BSD_LINK_DETECT
#include <net/if_media.h>
#endif /* HAVE_BSD_LINK_DETECT*/
@@ -166,11 +164,7 @@ void if_get_mtu(struct interface *ifp)
return;
}
-#ifdef SUNOS_5
- ifp->mtu6 = ifp->mtu = ifreq.ifr_metric;
-#else
ifp->mtu6 = ifp->mtu = ifreq.ifr_mtu;
-#endif /* SUNOS_5 */
/* propogate */
zebra_interface_up_update(ifp);
@@ -378,11 +372,7 @@ int if_set_prefix_ctx(const struct zebra_dplane_ctx *ctx)
}
mask.sin_family = p->family;
-#ifdef SUNOS_5
- memcpy(&mask, &ifreq.ifr_addr, sizeof(mask));
-#else
memcpy(&ifreq.ifr_addr, &mask, sizeof(struct sockaddr_in));
-#endif /* SUNOS5 */
ret = if_ioctl(SIOCSIFNETMASK, (caddr_t)&ifreq);
if (ret < 0)
return ret;
@@ -620,5 +610,3 @@ static int if_unset_prefix6_ctx(const struct zebra_dplane_ctx *ctx)
#endif /* HAVE_STRUCT_IN6_ALIASREQ */
#endif /* LINUX_IPV6 */
-
-#endif /* !SUNOS_5 */