diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-30 14:01:29 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-30 14:01:29 +0100 |
commit | 67994842694e57a42f524e228ca7acc564f2104f (patch) | |
tree | dbd3a3ca8317c5bee18799fb2d51ea0e4e22e6de /src/sync-mode.c | |
parent | 1fadc34c80a17e291f5ae86ecb84efbdb2aab265 (diff) | |
download | conntrack-tools-67994842694e57a42f524e228ca7acc564f2104f.tar.gz conntrack-tools-67994842694e57a42f524e228ca7acc564f2104f.zip |
network: make tx buffer initialization independent of mcast config
This patch changes the prototype of mcast_buffered_init() to receive
as argument the MTU size instead of the multicast configuration. This
decouples the initialization of the tx buffer from the multicast
configuration. This patch is needed by the multi-dedicated link
support.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/sync-mode.c')
-rw-r--r-- | src/sync-mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync-mode.c b/src/sync-mode.c index e613111..98867b2 100644 --- a/src/sync-mode.c +++ b/src/sync-mode.c @@ -233,7 +233,7 @@ static int init_sync(void) dlog(LOG_NOTICE, "multicast client socket sender queue " "has been set to %d bytes", CONFIG(mcast).sndbuf); - if (mcast_buffered_init(&CONFIG(mcast)) == -1) { + if (mcast_buffered_init(CONFIG(mcast).mtu) == -1) { dlog(LOG_ERR, "can't init tx buffer!"); mcast_server_destroy(STATE_SYNC(mcast_server)); mcast_client_destroy(STATE_SYNC(mcast_client)); |