diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-05-18 19:33:40 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-05-18 19:33:40 +0000 |
commit | 2932c6b8e6952ae84b221b854b43810c61e5c8fa (patch) | |
tree | 1ee7f364f74f2dff2b462ab01868a74fd87f1403 /src/cache_iterators.c | |
parent | 34d1c62cd414a6d3321d9a51fc6e1d61f36da2f0 (diff) | |
download | conntrack-tools-2932c6b8e6952ae84b221b854b43810c61e5c8fa.tar.gz conntrack-tools-2932c6b8e6952ae84b221b854b43810c61e5c8fa.zip |
- remove dead code sync-mode.c
- flush nack queue in the conntrackd -f path
- do not increase add_fail counter for EEXIST errors
- cleanup sync-nack code
- improve mcast_recv_netmsg: sanity check before checksumming!
Diffstat (limited to 'src/cache_iterators.c')
-rw-r--r-- | src/cache_iterators.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cache_iterators.c b/src/cache_iterators.c index 5d5d22b..e1f3798 100644 --- a/src/cache_iterators.c +++ b/src/cache_iterators.c @@ -182,6 +182,10 @@ static int do_flush(void *data1, void *data2) c->features[i]->destroy(u, data); data += c->features[i]->size; } + + if (c->extra && c->extra->destroy) + c->extra->destroy(u, ((void *) u) + c->extra_offset); + free(u->ct); return 0; @@ -215,7 +219,7 @@ static int do_bulk(void *data1, void *data2) debug_ct(u->ct, "failed to build"); mcast_send_netmsg(STATE_SYNC(mcast_client), net); - STATE_SYNC(mcast_sync)->post_send(net, u); + STATE_SYNC(mcast_sync)->post_send(NFCT_T_UPDATE, net, u); /* keep iterating even if we have found errors */ return 0; |