| 594 | } |
| 595 | |
| 596 | void |
| 597 | rt_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 |
| 620 | int p_sockaddr(char *buf, int buflen, struct sockaddr *s); |
no test coverage detected