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

Function radix4_init

freebsd/netinet/in_fib_algo.c:710–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710static enum flm_op_result
711radix4_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
726static void
727radix4_destroy(void *_data)

Callers

nothing calls this directly

Calls 2

mallocFunction · 0.85
fib_get_rhFunction · 0.85

Tested by

no test coverage detected