netfilter: nf_conntrack_sip: pass data offset to NAT functions
authorPatrick McHardy <kaber@trash.net>
Thu, 11 Feb 2010 11:23:53 +0000 (12:23 +0100)
committerPatrick McHardy <kaber@trash.net>
Thu, 11 Feb 2010 11:23:53 +0000 (12:23 +0100)
commit3b6b9fab42fe98358d70735cf98d43fc18dc79c9
tree98703e92c7259e35b7d6cd557bf0c1a6965f4e7c
parent54101f4f3bed87fa968b57f77f8ff3b09fd88bcf
netfilter: nf_conntrack_sip: pass data offset to NAT functions

When using TCP multiple SIP messages might be present in a single packet.
A following patch will parse them by setting the dptr to the beginning of
each message. The NAT helper needs to reload the dptr value after mangling
the packet however, so it needs to know the offset of the message to the
beginning of the packet.

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