summaryrefslogtreecommitdiff
path: root/src/queue.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-01-17 18:24:57 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-01-17 18:24:57 +0100
commita63f5181807803ffdd879edca9fd4d73c4be35f3 (patch)
treee25745a983614e4a3a628c8086d5c816dc3d0004 /src/queue.c
parent7f5a53998abfc9b199b713244fe8baf0a7c2b2fe (diff)
downloadconntrack-tools-a63f5181807803ffdd879edca9fd4d73c4be35f3.tar.gz
conntrack-tools-a63f5181807803ffdd879edca9fd4d73c4be35f3.zip
ftfw: add ResendQueueSize and deprecate ResendBufferSize clauses
This patch adds ResendQueueSize, which sets the number of objects that can be stored in the resend queue waiting to be confirmed. The ResendBufferSize clause has been deprecated. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/queue.c')
-rw-r--r--src/queue.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/queue.c b/src/queue.c
index cffcc93..7b36dc6 100644
--- a/src/queue.c
+++ b/src/queue.c
@@ -113,6 +113,13 @@ int queue_del(struct queue_node *n)
return 1;
}
+struct queue_node *queue_del_head(struct queue *b)
+{
+ struct queue_node *n = (struct queue_node *) b->head.next;
+ queue_del(n);
+ return n;
+}
+
int queue_in(struct queue *b, struct queue_node *n)
{
return b == n->owner;