File:  [ELWIX - Embedded LightWeight unIX -] / fwsync / patches / ip_fw_dynamic.patch
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Jun 22 13:01:55 2022 UTC (22 months, 3 weeks ago) by misho
Branches: MAIN
CVS tags: HEAD
Initial revision

diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c
index 7b5a7f60e49..a31e21050ad 100644
--- a/sys/netpfil/ipfw/ip_fw_dynamic.c
+++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
@@ -1959,6 +1959,10 @@ dyn_install_state(const struct ipfw_flow_id *pkt, uint32_t zoneid,
 #endif
 		}
 	}
+
+	if (!ret && V_hook_state)
+		V_hook_state(pkt);
+
 	/*
 	 * EEXIST means that simultaneous thread has created this
 	 * state. Consider this as success.

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