: Fix offset calculation in amanda conntrack helper
PATCH 9/14 : Fix offset calculation in amanda conntrack helper
This patch for 2.6 fixes offset calculation in the amanda conntrack helper, which was broken by the recent changes to the expectation API. Without this patch, the offset points beyond the port number instead of to it's beginning.
Author: Patrick McHardy <[email protected]>
--
- Harald Welte <[email protected]> http://www.netfilter.org/
============================================================================
"Fragmentation is like classful addressing -- an interesting early
architectural error that shows how much experimentation was going
on while IP was being designed." -- Paul Vixie
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/06/20 22:45:31+02:00 [email protected]
# [NETFILTER]: Fix offset calculation in amanda conntrack helper
#
# net/ipv4/netfilter/ip_conntrack_amanda.c # 2004/06/20 22:45:22+02:00 [email protected] +1 -1 # [NETFILTER]: Fix offset calculation in amanda conntrack helper # diff -Nru a/net/ipv4/netfilter/ip_conntrack_amanda.c b/net/ipv4/netfilter/ip_conntrack_amanda.c --- a/net/ipv4/netfilter/ip_conntrack_amanda.c 2004-06-20 23:00:42 +02:00 +++ b/net/ipv4/netfilter/ip_conntrack_amanda.c 2004-06-20 23:00:42 +02:00 @@ -107,7 +107,7 @@ exp->mask.dst.u.tcp.port = 0xFFFF;
exp_amanda_info = &exp->help.exp_amanda_info;
- exp_amanda_info->offset = data - amanda_buffer;
+ exp_amanda_info->offset = tmp - amanda_buffer;
exp_amanda_info->port = port;
exp_amanda_info->len = len;