Initialize V_nat64out methods explicitly.

It looks like initialization of static variable doesn't work for
VIMAGE and this leads to panic.

Reported by:	olivier
MFC after:	1 week
This commit is contained in:
Andrey V. Elsukov 2019-06-05 09:25:40 +00:00
parent e0235fd34a
commit efdadaa2d8

View File

@ -83,6 +83,8 @@ vnet_ipfw_nat64_init(const void *arg __unused)
ch = &V_layer3_chain;
first = IS_DEFAULT_VNET(curvnet) ? 1: 0;
/* Initialize V_nat64out methods explicitly. */
nat64_set_output_method(0);
error = nat64stl_init(ch, first);
if (error != 0)
return (error);