--- fwsync/patches/ip_fw_private_h.patch 2022/08/09 23:42:44 1.6 +++ fwsync/patches/ip_fw_private_h.patch 2022/08/18 11:33:20 1.7 @@ -1,5 +1,5 @@ diff --git a/sys/netpfil/ipfw/ip_fw_private.h b/sys/netpfil/ipfw/ip_fw_private.h -index 1440b1a40ee..7daae3e3ced 100644 +index 1440b1a40ee..bd4cefb7fed 100644 --- a/sys/netpfil/ipfw/ip_fw_private.h +++ b/sys/netpfil/ipfw/ip_fw_private.h @@ -251,6 +251,40 @@ VNET_DECLARE(unsigned int, fw_tables_sets); @@ -43,3 +43,26 @@ index 1440b1a40ee..7daae3e3ced 100644 #ifdef _KERNEL /* * Here we have the structure representing an ipfw rule. +@@ -295,6 +329,22 @@ struct ip_fw { + + #endif + ++/* Nat configuration data struct. */ ++struct cfg_nat { ++ /* chain of nat instances */ ++ LIST_ENTRY(cfg_nat) _next; ++ int id; /* nat id */ ++ struct in_addr ip; /* nat ip address */ ++ struct libalias *lib; /* libalias instance */ ++ int mode; /* aliasing mode */ ++ int redir_cnt; /* number of entry in spool chain */ ++ /* chain of redir instances */ ++ LIST_HEAD(redir_chain, cfg_redir) redir_chain; ++ char if_name[IF_NAMESIZE]; /* interface name */ ++ u_short alias_port_lo; /* low range for port aliasing */ ++ u_short alias_port_hi; /* high range for port aliasing */ ++}; ++ + struct ip_fw_chain { + struct ip_fw **map; /* array of rule ptrs to ease lookup */ + uint32_t id; /* ruleset id */