We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643a606 commit a83191cCopy full SHA for a83191c
sys/net/route.c
@@ -515,7 +515,6 @@ rt_getifa_fib(struct rt_addrinfo *info, u_int fibnum)
515
void
516
rt_updatemtu(struct ifnet *ifp)
517
{
518
- struct rib_head *rnh;
519
#ifdef INET6
520
uint32_t in6mtu;
521
@@ -524,12 +523,11 @@ rt_updatemtu(struct ifnet *ifp)
524
523
525
for (u_int j = 0; j < rt_numfibs; j++) {
526
#ifdef INET
527
- rnh = rt_tables_get_rnh(j, AF_INET);
528
- nhops_update_ifmtu(rnh, ifp, ifp->if_mtu);
+ nhops_update_ifmtu(rt_tables_get_rnh(j, AF_INET), ifp,
+ ifp->if_mtu);
529
#endif
530
531
- rnh = rt_tables_get_rnh(j, AF_INET6);
532
- nhops_update_ifmtu(rnh, ifp, in6mtu);
+ nhops_update_ifmtu(rt_tables_get_rnh(j, AF_INET6), ifp, in6mtu);
533
534
}
535
0 commit comments