aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-02-11 06:26:19 -0500
committerPatrick McHardy <kaber@trash.net>2010-02-11 06:26:19 -0500
commitf5b321bd37fbec9188feb1f721ab46a5ac0b35da (patch)
treee4899d8dcfdb4128505e4f246154934d18692295 /net/ipv4
parent3b6b9fab42fe98358d70735cf98d43fc18dc79c9 (diff)
netfilter: nf_conntrack_sip: add TCP support
Add TCP support, which is mandated by RFC3261 for all SIP elements. SIP over TCP is similar to UDP, except that messages are delimited by Content-Length: headers and multiple messages may appear in one packet. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/netfilter/nf_nat_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/nf_nat_sip.c b/net/ipv4/netfilter/nf_nat_sip.c
index 2454ea5abb79..b232e4040dc6 100644
--- a/net/ipv4/netfilter/nf_nat_sip.c
+++ b/net/ipv4/netfilter/nf_nat_sip.c
@@ -122,7 +122,7 @@ static unsigned int ip_nat_sip(struct sk_buff *skb, unsigned int dataoff,
122 122
123 /* Translate topmost Via header and parameters */ 123 /* Translate topmost Via header and parameters */
124 if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen, 124 if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen,
125 SIP_HDR_VIA, NULL, &matchoff, &matchlen, 125 SIP_HDR_VIA_UDP, NULL, &matchoff, &matchlen,
126 &addr, &port) > 0) { 126 &addr, &port) > 0) {
127 unsigned int matchend, poff, plen, buflen, n; 127 unsigned int matchend, poff, plen, buflen, n;
128 char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")]; 128 char buffer[sizeof("nnn.nnn.nnn.nnn:nnnnn")];