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

Function nhgrp_ctl_init

freebsd/net/route/nhgrp.c:309–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309int
310nhgrp_ctl_init(struct nh_control *ctl)
311{
312
313 /*
314 * By default, do not allocate datastructures as multipath
315 * routes will not be necessarily used.
316 */
317 CHT_SLIST_INIT(&ctl->gr_head, NULL, 0);
318 bitmask_init(&ctl->gr_idx_head, NULL, 0);
319 return (0);
320}
321
322void
323nhgrp_ctl_free(struct nh_control *ctl)

Callers

nothing calls this directly

Calls 1

bitmask_initFunction · 0.85

Tested by

no test coverage detected