summaryrefslogtreecommitdiff
path: root/src/sync-notrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync-notrack.c')
-rw-r--r--src/sync-notrack.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sync-notrack.c b/src/sync-notrack.c
index 1d6eba8..8588ecf 100644
--- a/src/sync-notrack.c
+++ b/src/sync-notrack.c
@@ -24,12 +24,16 @@
static void refresher(struct alarm_list *a, void *data)
{
+ int len;
+ struct nethdr *net;
struct us_conntrack *u = data;
debug_ct(u->ct, "persistence update");
a->expires = random() % CONFIG(refresh) + 1;
- mcast_build_send_update(u);
+ net = BUILD_NETMSG(u->ct, NFCT_Q_UPDATE);
+ len = prepare_send_netmsg(STATE_SYNC(mcast_client), net);
+ mcast_buffered_send_netmsg(STATE_SYNC(mcast_client), net, len);
}
static void cache_notrack_add(struct us_conntrack *u, void *data)