| 708 | } |
| 709 | |
| 710 | static enum flm_op_result |
| 711 | radix4_init(uint32_t fibnum, struct fib_data *fd, void *_old_data, void **_data) |
| 712 | { |
| 713 | struct radix4_data *r4; |
| 714 | |
| 715 | r4 = malloc(sizeof(struct radix4_data), M_RTABLE, M_NOWAIT | M_ZERO); |
| 716 | if (r4 == NULL) |
| 717 | return (FLM_REBUILD); |
| 718 | r4->fd = fd; |
| 719 | r4->rh = fib_get_rh(fd); |
| 720 | |
| 721 | *_data = r4; |
| 722 | |
| 723 | return (FLM_SUCCESS); |
| 724 | } |
| 725 | |
| 726 | static void |
| 727 | radix4_destroy(void *_data) |
nothing calls this directly
no test coverage detected