Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2019 16:34:03 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r348997 - stable/11/sys/netpfil/ipfw/nat64
Message-ID:  <201906121634.x5CGY3Hb038720@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Jun 12 16:34:02 2019
New Revision: 348997
URL: https://svnweb.freebsd.org/changeset/base/348997

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.
  
  Approved by:	re (gjb)

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

Modified: stable/11/sys/netpfil/ipfw/nat64/ip_fw_nat64.c
==============================================================================
--- stable/11/sys/netpfil/ipfw/nat64/ip_fw_nat64.c	Wed Jun 12 16:06:31 2019	(r348996)
+++ stable/11/sys/netpfil/ipfw/nat64/ip_fw_nat64.c	Wed Jun 12 16:34:02 2019	(r348997)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906121634.x5CGY3Hb038720>