From 1203e1c07c444df615605168c72852389e20340c Mon Sep 17 00:00:00 2001 From: hasso Date: Fri, 23 Jul 2004 21:34:27 +0000 Subject: Use ifp->mtu6 in ospf6d and ripngd. --- ripngd/ChangeLog | 5 +++++ ripngd/ripng_interface.c | 12 ++++++------ ripngd/ripng_nexthop.c | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) (limited to 'ripngd') diff --git a/ripngd/ChangeLog b/ripngd/ChangeLog index 059ee757..6b05f3de 100644 --- a/ripngd/ChangeLog +++ b/ripngd/ChangeLog @@ -1,3 +1,8 @@ +2004-07-23 Hasso Tepper + + * ripng_interface.c, ripng_nexthop.c: use ifp->mtu6 instead of + ifp->mtu. + 2004-07-01 Greg Troxel * ripng_interface.c (ripng_multicast_join): Use privs to do join, diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c index d4d1e642..92067a7a 100644 --- a/ripngd/ripng_interface.c +++ b/ripngd/ripng_interface.c @@ -166,8 +166,8 @@ ripng_check_max_mtu () for (node = listhead (iflist); node; nextnode (node)) { ifp = getdata (node); - if (mtu < ifp->mtu) - mtu = ifp->mtu; + if (mtu < ifp->mtu6) + mtu = ifp->mtu6; } return mtu; } @@ -243,7 +243,7 @@ ripng_interface_up (int command, struct zclient *zclient, zebra_size_t length) if (IS_RIPNG_DEBUG_ZEBRA) zlog_info ("interface up %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu6); /* Check if this interface is RIPng enabled or not. */ ripng_enable_apply (ifp); @@ -276,7 +276,7 @@ ripng_interface_down (int command, struct zclient *zclient, if (IS_RIPNG_DEBUG_ZEBRA) zlog_info ("interface down %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu6); return 0; } @@ -291,7 +291,7 @@ ripng_interface_add (int command, struct zclient *zclient, zebra_size_t length) if (IS_RIPNG_DEBUG_ZEBRA) zlog_info ("RIPng interface add %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu6); /* Check is this interface is RIP enabled or not.*/ ripng_enable_apply (ifp); @@ -324,7 +324,7 @@ ripng_interface_delete (int command, struct zclient *zclient, } zlog_info("interface delete %s index %d flags %ld metric %d mtu %d", - ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu); + ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu6); /* To support pseudo interface do not free interface structure. */ /* if_delete(ifp); */ diff --git a/ripngd/ripng_nexthop.c b/ripngd/ripng_nexthop.c index 2c5d45cd..04b13c50 100644 --- a/ripngd/ripng_nexthop.c +++ b/ripngd/ripng_nexthop.c @@ -144,7 +144,7 @@ ripng_rte_send(struct list *ripng_rte_list, struct interface *ifp, stream_reset (s); num = 0; - mtu = ifp->mtu; + mtu = ifp->mtu6; if (mtu < 0) mtu = IFMINMTU; -- cgit v1.2.1