svn commit: r348984 - stable/12/sys/netpfil/ipfw/nat64

Andrey V. Elsukov ae at FreeBSD.org
Wed Jun 12 10:50:18 UTC 2019


Author: ae
Date: Wed Jun 12 10:50:17 2019
New Revision: 348984
URL: https://svnweb.freebsd.org/changeset/base/348984

Log:
  MFC r348682:
    Initialize V_nat64out methods explicitly.
  
    It looks like initialization of static variable doesn't work for
    VIMAGE and this leads to panic.

Modified:
  stable/12/sys/netpfil/ipfw/nat64/ip_fw_nat64.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/ipfw/nat64/ip_fw_nat64.c
==============================================================================
--- stable/12/sys/netpfil/ipfw/nat64/ip_fw_nat64.c	Wed Jun 12 09:18:23 2019	(r348983)
+++ stable/12/sys/netpfil/ipfw/nat64/ip_fw_nat64.c	Wed Jun 12 10:50:17 2019	(r348984)
@@ -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);


More information about the svn-src-stable mailing list