[NETFILTER]: Fix CID offset bug in PPTP NAT helper debug message
authorHolger Eitzenberger <heitzenberger@astaro.com>
Tue, 21 Mar 2006 01:58:21 +0000 (17:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Mar 2006 01:58:21 +0000 (17:58 -0800)
commitf2ad52c9da2229d7f038d02139d21478b33b76b4
tree8faeeb5dbd332e9bae28d12d6e54945d587db0fa
parent77ff72d528d5b9d30a47f42f364ba34d931f9da3
[NETFILTER]: Fix CID offset bug in PPTP NAT helper debug message

The recent (kernel 2.6.15.1) fix for PPTP NAT helper introduced a
bug - which only appears if DEBUGP is enabled though.

The calculation of the CID offset into a PPTP request struct is
not correct, so that at least not the correct CID is displayed
if DEBUGP is enabled.

This patch corrects CID offset calculation and introduces a #define
for that.

Signed-off-by: Holger Eitzenberger <heitzenberger@astaro.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_nat_helper_pptp.c