diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2019-06-05 09:25:40 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2019-06-05 09:25:40 +0000 |
commit | efdadaa2d85892a3f0447687fbc3b9366f8278f2 (patch) | |
tree | f782bc3b1c0b317d07078b98fa2521c7a7d70b71 /sys/netpfil/ipfw/nat64 | |
parent | e0235fd34ab2a715fe4704807c37206c5e98010a (diff) | |
download | src-efdadaa2d85892a3f0447687fbc3b9366f8278f2.tar.gz src-efdadaa2d85892a3f0447687fbc3b9366f8278f2.zip |
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
Notes
Notes:
svn path=/head/; revision=348682
Diffstat (limited to 'sys/netpfil/ipfw/nat64')
-rw-r--r-- | sys/netpfil/ipfw/nat64/ip_fw_nat64.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/nat64/ip_fw_nat64.c b/sys/netpfil/ipfw/nat64/ip_fw_nat64.c index ea5ff597a7bf..500cc329cfaa 100644 --- a/sys/netpfil/ipfw/nat64/ip_fw_nat64.c +++ b/sys/netpfil/ipfw/nat64/ip_fw_nat64.c @@ -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); |