]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETFILTER]: nf_conntrack_sip: adjust dptr and datalen after packet mangling
authorPatrick McHardy <kaber@trash.net>
Wed, 26 Mar 2008 03:16:54 +0000 (20:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Mar 2008 03:16:54 +0000 (20:16 -0700)
commit2a6cfb22ae002330d445f734668d9158db9e90de
tree5d05dcfcfdc1df571b5c502b5df314debd7a19ce
parentb1ec488b1fb3c7a8819857e3506787516ca1ed4d
[NETFILTER]: nf_conntrack_sip: adjust dptr and datalen after packet mangling

After mangling the packet, the pointer to the data and the length of the data
portion may change and need to be adjusted.

Use double data pointers and a pointer to the length everywhere and add a
helper function to the NAT helper for performing the adjustments.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netfilter/nf_conntrack_sip.h
net/ipv4/netfilter/nf_nat_sip.c
net/netfilter/nf_conntrack_sip.c