* This is called to generate routing socket messages indicating * network interface arrival and departure. */
| 2051 | * network interface arrival and departure. |
| 2052 | */ |
| 2053 | void |
| 2054 | rt_ifannouncemsg(struct ifnet *ifp, int what) |
| 2055 | { |
| 2056 | struct mbuf *m; |
| 2057 | struct rt_addrinfo info; |
| 2058 | |
| 2059 | m = rt_makeifannouncemsg(ifp, RTM_IFANNOUNCE, what, &info); |
| 2060 | if (m != NULL) |
| 2061 | rt_dispatch(m, AF_UNSPEC); |
| 2062 | } |
| 2063 | |
| 2064 | static void |
| 2065 | rt_dispatch(struct mbuf *m, sa_family_t saf) |
no test coverage detected