summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2017-07-20 21:03:51 -0500
committerLuiz Souza <luiz@netgate.com>2017-07-20 21:03:51 -0500
commitcc274278302a81add472ccf3344e8ec09a44f737 (patch)
tree5d51750c3b3333d345a7de8398977d3c7098c69c
parentdc59fff1188c9c81632773b3ddf0ba6e0ee843e3 (diff)
downloadFreeBSD-src-cc274278302a81add472ccf3344e8ec09a44f737.zip
FreeBSD-src-cc274278302a81add472ccf3344e8ec09a44f737.tar.gz
Replace the hardcoded NULL. No functional changes.
-rw-r--r--sys/netpfil/ipfw/ip_fw_table_algo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_table_algo.c b/sys/netpfil/ipfw/ip_fw_table_algo.c
index 0000df6..94d1c5e 100644
--- a/sys/netpfil/ipfw/ip_fw_table_algo.c
+++ b/sys/netpfil/ipfw/ip_fw_table_algo.c
@@ -4557,21 +4557,21 @@ ta_lookup_mhash(struct table_info *ti, void *key, uint32_t keylen,
hsize = 1 << (ti->data & 0xFF);
hash2 = hash_mac2(key, hsize);
if (ta_lookup_find_mhash(head, hash2,
- (struct macdata *)key, val, NULL, te) == 1)
+ (struct macdata *)key, val, ea, te) == 1)
return (1);
/* src any */
memcpy(mac.addr, key, 6);
memset(mac.addr + 6, 0, 6);
hash2 = hash_mac2(mac.addr, hsize);
- if (ta_lookup_find_mhash(head, hash2, &mac, val, NULL, te) == 1)
+ if (ta_lookup_find_mhash(head, hash2, &mac, val, ea, te) == 1)
return (1);
/* dst any */
memset(mac.addr, 0, 6);
memcpy(mac.addr + 6, (uintptr_t *)key + 6, 6);
hash2 = hash_mac2(mac.addr, hsize);
- if (ta_lookup_find_mhash(head, hash2, &mac, val, NULL, te) == 1)
+ if (ta_lookup_find_mhash(head, hash2, &mac, val, ea, te) == 1)
return (1);
return (0);
OpenPOWER on IntegriCloud