Diff for /fwsync/patches/ip_fw_dynamic.patch between versions 1.3 and 1.4

version 1.3, 2022/08/09 23:42:44 version 1.4, 2022/08/11 22:02:31
Line 1 Line 1
 diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c  diff --git a/sys/netpfil/ipfw/ip_fw_dynamic.c b/sys/netpfil/ipfw/ip_fw_dynamic.c
index 00b54fa463a..3a2054aaca4 100644index 00b54fa463a..3a029855704 100644
 --- a/sys/netpfil/ipfw/ip_fw_dynamic.c  --- a/sys/netpfil/ipfw/ip_fw_dynamic.c
 +++ b/sys/netpfil/ipfw/ip_fw_dynamic.c  +++ b/sys/netpfil/ipfw/ip_fw_dynamic.c
 @@ -1868,6 +1868,7 @@ dyn_install_state(const struct ipfw_flow_id *pkt, uint32_t zoneid,  @@ -1868,6 +1868,7 @@ dyn_install_state(const struct ipfw_flow_id *pkt, uint32_t zoneid,
Line 36  index 00b54fa463a..3a2054aaca4 100644 Line 36  index 00b54fa463a..3a2054aaca4 100644
         /*          /*
          * Check if we need to resize the hash:           * Check if we need to resize the hash:
          * if current number of states exceeds number of buckets in hash,           * if current number of states exceeds number of buckets in hash,
@@ -2816,6 +2829,34 @@ ipfw_expire_dyn_states(struct ip_fw_chain *chain, ipfw_range_tlv *rt)@@ -2816,6 +2829,31 @@ ipfw_expire_dyn_states(struct ip_fw_chain *chain, ipfw_range_tlv *rt)
         dyn_expire_states(chain, rt);          dyn_expire_states(chain, rt);
  }   }
     
Line 49  index 00b54fa463a..3a2054aaca4 100644 Line 49  index 00b54fa463a..3a2054aaca4 100644
 +       struct ipfw_dyn_info info;  +       struct ipfw_dyn_info info;
 +  +
 +       DYN_INFO_INIT(&info);  +       DYN_INFO_INIT(&info);
 +  
 +       printf("%s: pkt=%p rule=%p rid=%u rn=%hu kidx=0x%hx ct=%hhu\n", __func__,   
 +                       pkt, rule, ruleid, rulenum, kidx, cmdtype);  
 +  +
 +       hashval = hash_packet(pkt);  +       hashval = hash_packet(pkt);
 +       if (IS_IP4_FLOW_ID(pkt))  +       if (IS_IP4_FLOW_ID(pkt))

Removed from v.1.3  
changed lines
  Added in v.1.4


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