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

Function free_nhgrp_nhops

freebsd/net/route/nhgrp_ctl.c:418–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418static void
419free_nhgrp_nhops(struct nhgrp_priv *nhg_priv)
420{
421
422 for (int i = 0; i < nhg_priv->nhg_nh_count; i++)
423 nhop_free(nhg_priv->nhg_nh_weights[i].nh);
424}
425
426/*
427 * Creates or looks up an existing nexthop group based on @wn and @num_nhops.

Callers 2

destroy_nhgrpFunction · 0.85
get_nhgrpFunction · 0.85

Calls 1

nhop_freeFunction · 0.85

Tested by

no test coverage detected