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

Function rt_ifannouncemsg

freebsd/net/rtsock.c:2053–2062  ·  view source on GitHub ↗

* This is called to generate routing socket messages indicating * network interface arrival and departure. */

Source from the content-addressed store, hash-verified

2051 * network interface arrival and departure.
2052 */
2053void
2054rt_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
2064static void
2065rt_dispatch(struct mbuf *m, sa_family_t saf)

Callers 3

if_attach_internalFunction · 0.85
if_detach_internalFunction · 0.85
ifhwioctlFunction · 0.85

Calls 2

rt_makeifannouncemsgFunction · 0.85
rt_dispatchFunction · 0.85

Tested by

no test coverage detected