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-05 15:34:30 +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-05 15:34:30 +0000 |
commit | 1c0b4d3721e40586219fb7676e61e6ba19affdd2 (patch) | |
tree | de2388c47a825d111501090727ce9a2c7f9acd5a /include | |
parent | 18d19a287315b950a6cef6051f8d4e844e37c6ba (diff) | |
download | conntrack-tools-1c0b4d3721e40586219fb7676e61e6ba19affdd2.tar.gz conntrack-tools-1c0b4d3721e40586219fb7676e61e6ba19affdd2.zip |
rename class `buffer' to `queue' which is what it really implements
Diffstat (limited to 'include')
-rw-r--r-- | include/buffer.h | 31 | ||||
-rw-r--r-- | include/conntrackd.h | 2 | ||||
-rw-r--r-- | include/queue.h | 31 |
3 files changed, 32 insertions, 32 deletions
diff --git a/include/buffer.h b/include/buffer.h deleted file mode 100644 index cb42f51..0000000 --- a/include/buffer.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef _BUFFER_H_ -#define _BUFFER_H_ - -#include <stdlib.h> -#include <errno.h> -#include <string.h> -#include "linux_list.h" - -struct buffer { - size_t max_size; - size_t cur_size; - unsigned int num_elems; - struct list_head head; -}; - -struct buffer_node { - struct list_head head; - size_t size; - char data[0]; -}; - -struct buffer *buffer_create(size_t max_size); -void buffer_destroy(struct buffer *b); -unsigned int buffer_len(struct buffer *b); -int buffer_add(struct buffer *b, const void *data, size_t size); -void buffer_del(struct buffer *b, void *data); -void buffer_iterate(struct buffer *b, - void *data, - int (*iterate)(void *data1, void *data2)); - -#endif diff --git a/include/conntrackd.h b/include/conntrackd.h index 116ab9d..a4a91ea 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -87,7 +87,7 @@ struct ct_conf { unsigned int listen_to_len; unsigned int flags; int family; /* protocol family */ - unsigned int resend_buffer_size;/* FTFW protocol */ + unsigned int resend_queue_size; /* FTFW protocol */ unsigned int window_size; int cache_write_through; struct { diff --git a/include/queue.h b/include/queue.h new file mode 100644 index 0000000..691138f --- /dev/null +++ b/include/queue.h @@ -0,0 +1,31 @@ +#ifndef _QUEUE_H_ +#define _QUEUE_H_ + +#include <stdlib.h> +#include <errno.h> +#include <string.h> +#include "linux_list.h" + +struct queue { + size_t max_size; + size_t cur_size; + unsigned int num_elems; + struct list_head head; +}; + +struct queue_node { + struct list_head head; + size_t size; + char data[0]; +}; + +struct queue *queue_create(size_t max_size); +void queue_destroy(struct queue *b); +unsigned int queue_len(struct queue *b); +int queue_add(struct queue *b, const void *data, size_t size); +void queue_del(struct queue *b, void *data); +void queue_iterate(struct queue *b, + void *data, + int (*iterate)(void *data1, void *data2)); + +#endif |