Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2019 09:28:53 +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-12@freebsd.org
Subject:   svn commit: r345258 - stable/12/sys/netpfil/ipfw
Message-ID:  <201903180928.x2I9SrVq003532@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon Mar 18 09:28:53 2019
New Revision: 345258
URL: https://svnweb.freebsd.org/changeset/base/345258

Log:
  MFC r345004 (with modification):
    Add IP_FW_NAT64 to codes that ipfw_chk() can return.
  
    It will be used by upcoming NAT64 changes. We use separate code
    to avoid propagating EACCES error code to user level applications
    when NAT64 consumes a packet.
  
    Obtained from:	Yandex LLC
    Sponsored by:	Yandex LLC

Modified:
  stable/12/sys/netpfil/ipfw/ip_fw_pfil.c
  stable/12/sys/netpfil/ipfw/ip_fw_private.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/netpfil/ipfw/ip_fw_pfil.c
==============================================================================
--- stable/12/sys/netpfil/ipfw/ip_fw_pfil.c	Mon Mar 18 09:23:15 2019	(r345257)
+++ stable/12/sys/netpfil/ipfw/ip_fw_pfil.c	Mon Mar 18 09:28:53 2019	(r345258)
@@ -313,6 +313,10 @@ again:
 	case IP_FW_REASS:
 		goto again;		/* continue with packet */
 
+	case IP_FW_NAT64:
+		ret = 0;
+		break;
+
 	default:
 		KASSERT(0, ("%s: unknown retval", __func__));
 	}

Modified: stable/12/sys/netpfil/ipfw/ip_fw_private.h
==============================================================================
--- stable/12/sys/netpfil/ipfw/ip_fw_private.h	Mon Mar 18 09:23:15 2019	(r345257)
+++ stable/12/sys/netpfil/ipfw/ip_fw_private.h	Mon Mar 18 09:28:53 2019	(r345258)
@@ -61,6 +61,7 @@ enum {
 	IP_FW_NGTEE,
 	IP_FW_NAT,
 	IP_FW_REASS,
+	IP_FW_NAT64,
 };
 
 /*



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