Révision ce422462
Ajouté par Ermal il y a presque 10 ans
patches/stable/10/CP_speedup.diff | ||
---|---|---|
351 | 351 |
|
352 | 352 |
typedef struct _ipfw_table { |
353 | 353 |
diff --git a/sys/netpfil/ipfw/ip_fw2.c b/sys/netpfil/ipfw/ip_fw2.c |
354 |
index cd466bd..ec717a6 100644
|
|
354 |
index cd466bd..f2f117e 100644
|
|
355 | 355 |
--- a/sys/netpfil/ipfw/ip_fw2.c |
356 | 356 |
+++ b/sys/netpfil/ipfw/ip_fw2.c |
357 | 357 |
@@ -358,8 +358,8 @@ iface_match(struct ifnet *ifp, ipfw_insn_if *cmd, struct ip_fw_chain *chain, uin |
... | ... | |
417 | 417 |
- cmd->arg1, key, &v); |
418 | 418 |
- if (!match) |
419 | 419 |
+ tblent = ipfw_lookup_table_extended(chain, |
420 |
+ cmd->arg1, key, &v, IPFW_TABLE_CIDR, ea); |
|
420 |
+ cmd->arg1, &key, &v, IPFW_TABLE_CIDR, ea);
|
|
421 | 421 |
+ if (tblent == NULL) { |
422 | 422 |
+ match = 0; |
423 | 423 |
break; |
Formats disponibles : Unified diff
Correct this argument passing !