diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-09-11 16:19:41 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-09-11 16:19:41 +0200 |
commit | 189dbc5853ce73448ca0d2423bbac3aa23712478 (patch) | |
tree | 21599062fa75ef75bf360b01072cce8e810f192b /src/channel_mcast.c | |
parent | 49540362b2a25aadbaf25fd087414776aa5a67a8 (diff) | |
download | conntrack-tools-189dbc5853ce73448ca0d2423bbac3aa23712478.tar.gz conntrack-tools-189dbc5853ce73448ca0d2423bbac3aa23712478.zip |
conntrackd: fix MTU for TCP channels
Use the TCP header size (20 bytes) instead of the UDP header size
(8 bytes) to calculate the maximum packet size.
Reported-by: Samuel Gauthier <samuel.gauthier@6wind.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/channel_mcast.c')
-rw-r--r-- | src/channel_mcast.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/channel_mcast.c b/src/channel_mcast.c index 9fcacac..35801d7 100644 --- a/src/channel_mcast.c +++ b/src/channel_mcast.c @@ -126,6 +126,7 @@ channel_mcast_accept_isset(struct channel *c, fd_set *readfds) } struct channel_ops channel_mcast = { + .headersiz = 28, /* IP header (20 bytes) + UDP header 8 (bytes) */ .open = channel_mcast_open, .close = channel_mcast_close, .send = channel_mcast_send, |