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

Function radix6_init

freebsd/netinet6/in6_fib_algo.c:294–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294static enum flm_op_result
295radix6_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
310static void
311radix6_destroy(void *_data)

Callers

nothing calls this directly

Calls 2

mallocFunction · 0.85
fib_get_rhFunction · 0.85

Tested by

no test coverage detected