summaryrefslogtreecommitdiff
path: root/src/sync-ftfw.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-12-08 11:09:02 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-12-08 11:09:02 +0100
commitbf6cfeb1dc6652eaff1b7c4edda45e15f5abf361 (patch)
tree936fa6dfa0aaabff35b3cd0a287f0623dfc04093 /src/sync-ftfw.c
parent29b5df53bcbef17722ab2b389f3352c4e86b4795 (diff)
downloadconntrack-tools-bf6cfeb1dc6652eaff1b7c4edda45e15f5abf361.tar.gz
conntrack-tools-bf6cfeb1dc6652eaff1b7c4edda45e15f5abf361.zip
network: remove length parameter of mcast_buffered_send_netmsg()
This patch simplifies mcast_buffered_send_netmsg() by removing the length parameter. Instead, we use the length field in the nethdr to know the message size to be sent. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r--src/sync-ftfw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index abba1fe..293f9ab 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -495,7 +495,7 @@ static int tx_queue_xmit(void *data1, const void *data2)
dp("tx_queue sq: %u fl:%u len:%u\n",
ntohl(net->seq), net->flags, ntohs(net->len));
- mcast_buffered_send_netmsg(STATE_SYNC(mcast_client), net, len);
+ mcast_buffered_send_netmsg(STATE_SYNC(mcast_client), net);
HDR_NETWORK2HOST(net);
if (IS_DATA(net) || IS_ACK(net) || IS_NACK(net))
@@ -518,7 +518,7 @@ static int tx_list_xmit(struct list_head *i, struct us_conntrack *u, int type)
list_del_init(i);
tx_list_len--;
- ret = mcast_buffered_send_netmsg(STATE_SYNC(mcast_client), net, len);
+ ret = mcast_buffered_send_netmsg(STATE_SYNC(mcast_client), net);
ftfw_send(net, u);
return ret;