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> | 2008-01-15 13:39:46 +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> | 2008-01-15 13:39:46 +0000 |
commit | 4e37e2d9079b4c1890a39f26e5082d6b1e7d0024 (patch) | |
tree | 5b64ed43985b5da8c60b1f7a672de75eb6e4e1fc /include | |
parent | f2e700dd7c1eb7325d8ce51f7e35b652cceac151 (diff) | |
download | conntrack-tools-4e37e2d9079b4c1890a39f26e5082d6b1e7d0024.tar.gz conntrack-tools-4e37e2d9079b4c1890a39f26e5082d6b1e7d0024.zip |
Max Kellermann <max@duempel.org>:
add missing function prototypes
Diffstat (limited to 'include')
-rw-r--r-- | include/alarm.h | 17 | ||||
-rw-r--r-- | include/conntrackd.h | 6 | ||||
-rw-r--r-- | include/ignore.h | 1 | ||||
-rw-r--r-- | include/network.h | 6 |
4 files changed, 30 insertions, 0 deletions
diff --git a/include/alarm.h b/include/alarm.h index fbe34f6..c68e7f4 100644 --- a/include/alarm.h +++ b/include/alarm.h @@ -17,4 +17,21 @@ set_alarm_expiration(struct alarm_list *t, long tv_sec, long tv_usec) t->tv.tv_usec = tv_usec; } +void set_alarm_function(struct alarm_list *t, + void (*fcn)(struct alarm_list *a, void *data)); + +void set_alarm_data(struct alarm_list *t, void *data); + +void init_alarm(struct alarm_list *t); + +void add_alarm(struct alarm_list *alarm); + +void del_alarm(struct alarm_list *alarm); + +void mod_alarm(struct alarm_list *alarm, unsigned long sc, unsigned long usc); + +int get_next_alarm(struct timeval *tv, struct timeval *next_alarm); + +int do_alarm_run(struct timeval *next_alarm); + #endif diff --git a/include/conntrackd.h b/include/conntrackd.h index e8b90cc..33732a4 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -175,4 +175,10 @@ extern struct ct_mode stats_mode; #define MAX(x, y) x > y ? x : y +/* These live in run.c */ +void killer(int foo); +void local_handler(int fd, void *data); +int init(void); +void run(void); + #endif diff --git a/include/ignore.h b/include/ignore.h index 40cb02d..96deb93 100644 --- a/include/ignore.h +++ b/include/ignore.h @@ -8,5 +8,6 @@ struct ignore_pool { struct ignore_pool *ignore_pool_create(u_int8_t family); void ignore_pool_destroy(struct ignore_pool *ip); int ignore_pool_add(struct ignore_pool *ip, void *data); +int ignore_pool_test(struct ignore_pool *ip, struct nf_conntrack *ct); #endif diff --git a/include/network.h b/include/network.h index e92f6c3..88ff43b 100644 --- a/include/network.h +++ b/include/network.h @@ -54,6 +54,8 @@ void build_netmsg(struct nf_conntrack *ct, int query, struct nethdr *net); int prepare_send_netmsg(struct mcast_sock *m, void *data); int mcast_send_netmsg(struct mcast_sock *m, void *data); int mcast_recv_netmsg(struct mcast_sock *m, void *data, int len); +int handle_netmsg(struct nethdr *net); +int mcast_track_seq(u_int32_t seq, u_int32_t *exp_seq); struct mcast_conf; @@ -161,4 +163,8 @@ struct netattr { #define NTA_ALIGN(len) (((len) + NTA_ALIGNTO - 1) & ~(NTA_ALIGNTO - 1)) #define NTA_LENGTH(len) (NTA_ALIGN(sizeof(struct netattr)) + (len)) +void build_netpld(struct nf_conntrack *ct, struct netpld *pld, int query); + +void parse_netpld(struct nf_conntrack *ct, struct netpld *pld, int *query); + #endif |