From 4e9cccfa0071ff51b489629bf2d69eefe6196ded Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 17 Dec 2008 12:42:00 +0100 Subject: src: cleanup, rename hashtable_test() by hashtable_find() This patch renames the function hashtable_test() by hashtable_find() which is a better name IMO to describe this function. Signed-off-by: Pablo Neira Ayuso --- src/filter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/filter.c') diff --git a/src/filter.c b/src/filter.c index 5a8b5d8..4e24fb5 100644 --- a/src/filter.c +++ b/src/filter.c @@ -221,15 +221,15 @@ static inline int __ct_filter_test_ipv4(struct ct_filter *f, struct nf_conntrack *ct) { /* we only use the real source and destination address */ - return (hashtable_test(f->h, nfct_get_attr(ct, ATTR_ORIG_IPV4_SRC)) || - hashtable_test(f->h, nfct_get_attr(ct, ATTR_REPL_IPV4_SRC))); + return (hashtable_find(f->h, nfct_get_attr(ct, ATTR_ORIG_IPV4_SRC)) || + hashtable_find(f->h, nfct_get_attr(ct, ATTR_REPL_IPV4_SRC))); } static inline int __ct_filter_test_ipv6(struct ct_filter *f, struct nf_conntrack *ct) { - return (hashtable_test(f->h6, nfct_get_attr(ct, ATTR_ORIG_IPV6_SRC)) || - hashtable_test(f->h6, nfct_get_attr(ct, ATTR_REPL_IPV6_SRC))); + return (hashtable_find(f->h6, nfct_get_attr(ct, ATTR_ORIG_IPV6_SRC)) || + hashtable_find(f->h6, nfct_get_attr(ct, ATTR_REPL_IPV6_SRC))); } static int -- cgit v1.2.3