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

Function in6_inithead

freebsd/netinet6/in6_rmx.c:142–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 */
141
142struct rib_head *
143in6_inithead(uint32_t fibnum)
144{
145 struct rib_head *rh;
146 struct rib_subscription *rs;
147
148 rh = rt_table_init(offsetof(struct sockaddr_in6, sin6_addr) << 3,
149 AF_INET6, fibnum);
150 if (rh == NULL)
151 return (NULL);
152
153 rh->rnh_preadd = rib6_preadd;
154
155 rs = rib_subscribe_internal(rh, nd6_subscription_cb, NULL,
156 RIB_NOTIFY_IMMEDIATE, true);
157 KASSERT(rs != NULL, ("Unable to subscribe to fib %u\n", fibnum));
158
159 return (rh);
160}
161
162#ifdef VIMAGE
163void

Callers

nothing calls this directly

Calls 2

rt_table_initFunction · 0.85
rib_subscribe_internalFunction · 0.85

Tested by

no test coverage detected