From 131df891f77dc75515d5eabdedd9818105d29f5a Mon Sep 17 00:00:00 2001 From: Arturo Borrero Gonzalez Date: Thu, 20 Apr 2017 19:28:11 +0200 Subject: conntrackd: factorize resync operations Resync operations factorization. There are two: * resync_send --> conntrackd -B (send bulk resync) * resync_req --> conntrackd -n (request resync) Future patches reuse this factorized code. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- include/Makefile.am | 2 +- include/resync.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 include/resync.h (limited to 'include') diff --git a/include/Makefile.am b/include/Makefile.am index 84fd608..352054e 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -6,5 +6,5 @@ noinst_HEADERS = alarm.h jhash.h cache.h linux_list.h linux_rbtree.h \ network.h filter.h queue.h vector.h cidr.h \ traffic_stats.h netlink.h fds.h event.h bitops.h channel.h \ process.h origin.h internal.h external.h date.h nfct.h \ - helper.h myct.h stack.h systemd.h queue_tx.h + helper.h myct.h stack.h systemd.h queue_tx.h resync.h diff --git a/include/resync.h b/include/resync.h new file mode 100644 index 0000000..5986600 --- /dev/null +++ b/include/resync.h @@ -0,0 +1,7 @@ +#ifndef _RESYNC_H_ +#define _RESYNC_H_ + +void resync_req(void); +void resync_send(int (*do_cache_to_tx)(void *data1, void *data2)); + +#endif /*_RESYNC_H_ */ -- cgit v1.2.3