summaryrefslogtreecommitdiff
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorpaul <paul>2004-05-09 11:00:23 +0000
committerpaul <paul>2004-05-09 11:00:23 +0000
commit44145db3ae79d54da58c967d96cf059421dbf9eb (patch)
treeac57bd081e8f93317676875aa73eaf2e7a45aa49 /zebra/ioctl.c
parentb9df2d25fc8d06ca63fa792d162d97656361338b (diff)
2004-05-09 Paul Jakma <paul@dishone.st>
* ioctl.c: (if_get_mtu) set mtu6 to mtu * mtu_kvm.c: (if_kvm_get_mtu) set mtu6 to mtu * rt_netlink.c: (netlink_interface) set mtu6 to mtu (netlink_link_change) ditto 2004-05-09 Sowmini Varadhan <sowmini.varadhan@sun.com> * interface.c: (if_delete_update) only used with HAVE_NETLINK and RTM_IFANNOUNCE. (if_flag_dump_vty) Solaris IFF_IPV4 and IFF_IPV6 if flags (if_dump_vty) print mtu6 if not same as mtu
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
}