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:05:43 -0500
commitfa8bbef00ec64fae911568feb947fa681648b346 (patch)
treeaf09a9614af76644c890395109beb9c20b914c17
parent8ba26325524b239070b9cf46fa63e0449d8111e0 (diff)
downloadFreeBSD-src-fa8bbef00ec64fae911568feb947fa681648b346.zip
FreeBSD-src-fa8bbef00ec64fae911568feb947fa681648b346.tar.gz
Replace the hardcoded NULL. No functional changes.
(cherry picked from commit cc274278302a81add472ccf3344e8ec09a44f737)
-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