| 140 | */ |
| 141 | |
| 142 | struct rib_head * |
| 143 | in6_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 |
| 163 | void |
nothing calls this directly
no test coverage detected