| 292 | } |
| 293 | |
| 294 | static enum flm_op_result |
| 295 | radix6_init(uint32_t fibnum, struct fib_data *fd, void *_old_data, void **_data) |
| 296 | { |
| 297 | struct radix6_data *r6; |
| 298 | |
| 299 | r6 = malloc(sizeof(struct radix6_data), M_RTABLE, M_NOWAIT | M_ZERO); |
| 300 | if (r6 == NULL) |
| 301 | return (FLM_REBUILD); |
| 302 | r6->fd = fd; |
| 303 | r6->rh = fib_get_rh(fd); |
| 304 | |
| 305 | *_data = r6; |
| 306 | |
| 307 | return (FLM_SUCCESS); |
| 308 | } |
| 309 | |
| 310 | static void |
| 311 | radix6_destroy(void *_data) |
nothing calls this directly
no test coverage detected