MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rt_updatemtu

Function rt_updatemtu

freebsd/net/route.c:596–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596void
597rt_updatemtu(struct ifnet *ifp)
598{
599 struct rib_head *rnh;
600 int mtu;
601 int i, j;
602
603 /*
604 * Try to update rt_mtu for all routes using this interface
605 * Unfortunately the only way to do this is to traverse all
606 * routing tables in all fibs/domains.
607 */
608 for (i = 1; i <= AF_MAX; i++) {
609 mtu = if_getmtu_family(ifp, i);
610 for (j = 0; j < rt_numfibs; j++) {
611 rnh = rt_tables_get_rnh(j, i);
612 if (rnh == NULL)
613 continue;
614 nhops_update_ifmtu(rnh, ifp, mtu);
615 }
616 }
617}
618
619#if 0
620int p_sockaddr(char *buf, int buflen, struct sockaddr *s);

Callers 5

nd6_ra_inputFunction · 0.85
ifhwioctlFunction · 0.85
lagg_ioctlFunction · 0.85
bridge_ioctlFunction · 0.85
vlan_ioctlFunction · 0.85

Calls 3

if_getmtu_familyFunction · 0.85
rt_tables_get_rnhFunction · 0.85
nhops_update_ifmtuFunction · 0.85

Tested by

no test coverage detected