summaryrefslogtreecommitdiff
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/ioctl.c')
-rw-r--r--zebra/ioctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c
index ff253be1..eca0e769 100644
--- a/zebra/ioctl.c
+++ b/zebra/ioctl.c
@@ -148,19 +148,19 @@ if_get_mtu (struct interface *ifp)
if (if_ioctl (SIOCGIFMTU, (caddr_t) & ifreq) < 0)
{
zlog_info ("Can't lookup mtu by ioctl(SIOCGIFMTU)");
- ifp->mtu = -1;
+ ifp->mtu6 = ifp->mtu = -1;
return;
}
#ifdef SUNOS_5
- ifp->mtu = ifreq.ifr_metric;
+ ifp->mtu6 = ifp->mtu = ifreq.ifr_metric;
#else
- ifp->mtu = ifreq.ifr_mtu;
+ ifp->mtu6 = ifp->mtu = ifreq.ifr_mtu;
#endif /* SUNOS_5 */
#else
zlog (NULL, LOG_INFO, "Can't lookup mtu on this system");
- ifp->mtu = -1;
+ ifp->mtu6 = ifp->mtu = -1;
#endif
}