diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-25 17:51:09 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-01-25 17:51:09 +0100 |
commit | e6732c96ffd9baaaa84dab763ff6e600bf6abc95 (patch) | |
tree | af3420b6540f7401c63ceb1994febeb5675463aa /src/netlink.c | |
parent | 61d976838ee0c3eeda295818ff44f44327b0596d (diff) | |
download | conntrack-tools-e6732c96ffd9baaaa84dab763ff6e600bf6abc95.tar.gz conntrack-tools-e6732c96ffd9baaaa84dab763ff6e600bf6abc95.zip |
cache: remove nl_exist_conntrack() function
This function is a synonimous of nl_get_conntrack(), use the get
function instead.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/netlink.c')
-rw-r--r-- | src/netlink.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/netlink.c b/src/netlink.c index 15a30f6..e538aa0 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -178,8 +178,8 @@ int nl_send_resync(struct nfct_handle *h) return nfct_send(h, NFCT_Q_DUMP, &family); } -static int -__nl_get_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct) +/* if the handle has no callback, check for existence, otherwise, update */ +int nl_get_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct) { int ret; char __tmp[nfct_maxsize()]; @@ -197,17 +197,6 @@ __nl_get_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct) return 1; } -int nl_exist_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct) -{ - return __nl_get_conntrack(h, ct); -} - -/* get the conntrack and update the cache */ -int nl_get_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct) -{ - return __nl_get_conntrack(h, ct); -} - int nl_create_conntrack(struct nfct_handle *h, const struct nf_conntrack *orig) { int ret; |