Yet another problem created by VIMAGE/if_vmove/epair design that relocates ifnet between vnets and changes if_index. Since if_index changes, nhop hash values also changes, unlink_nhop() isn't able to find entry in hash and leaks the nhop. Since nhop references ifnet, the latter is also leaked. As result running network tests leaks memory on every single test that creates vnet jail. While here, rewrite whole hash_priv() to use static initializer, per Alexander's suggestion. Reviewed by: melifaro |
||
---|---|---|
.. | ||
fib_algo.c | ||
fib_algo.h | ||
mpath_ctl.c | ||
nhgrp_ctl.c | ||
nhgrp_var.h | ||
nhgrp.c | ||
nhop_ctl.c | ||
nhop_utils.c | ||
nhop_utils.h | ||
nhop_var.h | ||
nhop.c | ||
nhop.h | ||
route_ctl.c | ||
route_ctl.h | ||
route_ddb.c | ||
route_helpers.c | ||
route_ifaddrs.c | ||
route_tables.c | ||
route_temporal.c | ||
route_var.h |