File:  [ELWIX - Embedded LightWeight unIX -] / fwsync / patches / ip_fw_nat.patch
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sat Aug 13 18:08:19 2022 UTC (21 months ago) by misho
Branches: MAIN
CVS tags: HEAD
adds sync nat aliases augmentation

diff --git a/sys/netpfil/ipfw/ip_fw_nat.c b/sys/netpfil/ipfw/ip_fw_nat.c
index d7b31c29d4e..22e6d81886a 100644
--- a/sys/netpfil/ipfw/ip_fw_nat.c
+++ b/sys/netpfil/ipfw/ip_fw_nat.c
@@ -348,6 +348,9 @@ ipfw_nat(struct ip_fw_args *args, struct cfg_nat *t, struct mbuf *m)
 
 	c = mtod(mcl, char *);
 
+	if (V_sync_alias)
+		V_sync_alias(NULL, NULL);
+
 	/* Check if this is 'global' instance */
 	if (t == NULL) {
 		if (args->flags & IPFW_ARGS_IN) {

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>