aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-03-25 23:18:40 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-25 23:18:40 -0400
commitac3677406d4e36e86b1eb5a453997a3b3e0c089a (patch)
treef67f28c542cf7adfde72af692892b2156f30e922 /include
parent3e9b4600b4e71beaa9d943251bfe9c25f6a97b8c (diff)
[NETFILTER]: nf_conntrack_sip: kill request URI "header" definitions
The request URI is not a header and needs to be treated differently than real SIP headers. Add a seperate function for parsing it and get rid of the POS_REQ_URI/POS_REG_REQ_URI definitions. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter/nf_conntrack_sip.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/netfilter/nf_conntrack_sip.h b/include/linux/netfilter/nf_conntrack_sip.h
index 9131cbc9b9de..480b26f40ce4 100644
--- a/include/linux/netfilter/nf_conntrack_sip.h
+++ b/include/linux/netfilter/nf_conntrack_sip.h
@@ -6,8 +6,6 @@
6#define SIP_TIMEOUT 3600 6#define SIP_TIMEOUT 3600
7 7
8enum sip_header_pos { 8enum sip_header_pos {
9 POS_REG_REQ_URI,
10 POS_REQ_URI,
11 POS_FROM, 9 POS_FROM,
12 POS_TO, 10 POS_TO,
13 POS_VIA, 11 POS_VIA,
@@ -59,6 +57,9 @@ extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff *skb,
59 unsigned int *datalen, 57 unsigned int *datalen,
60 struct nf_conntrack_expect *exp); 58 struct nf_conntrack_expect *exp);
61 59
60extern int ct_sip_parse_request(const struct nf_conn *ct,
61 const char *dptr, unsigned int datalen,
62 unsigned int *matchoff, unsigned int *matchlen);
62extern int ct_sip_get_info(const struct nf_conn *ct, const char *dptr, 63extern int ct_sip_get_info(const struct nf_conn *ct, const char *dptr,
63 size_t dlen, unsigned int *matchoff, 64 size_t dlen, unsigned int *matchoff,
64 unsigned int *matchlen, enum sip_header_pos pos); 65 unsigned int *matchlen, enum sip_header_pos pos);