aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-03-25 23:24:24 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-25 23:24:24 -0400
commit2bbb21168a90c788e12fe722eb66f27e611e7df7 (patch)
treea36c87d7aa6398cd82d0b73c3fd6dac67f9652d0 /include
parent9467ee380ae881443bc259fbbac9992baf523e2d (diff)
[NETFILTER]: nf_conntrack_sip: introduce URI and header parameter parsing helpers
Introduce URI and header parameter parsing helpers. These are needed by the conntrack helper to parse expiration values in Contact: header parameters and by the NAT helper to properly update the Via-header rport=, received= and maddr= parameters. 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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/netfilter/nf_conntrack_sip.h b/include/linux/netfilter/nf_conntrack_sip.h
index da93e80804c2..87e402825dba 100644
--- a/include/linux/netfilter/nf_conntrack_sip.h
+++ b/include/linux/netfilter/nf_conntrack_sip.h
@@ -93,6 +93,16 @@ extern int ct_sip_parse_header_uri(const struct nf_conn *ct, const char *dptr,
93 enum sip_header_types type, int *in_header, 93 enum sip_header_types type, int *in_header,
94 unsigned int *matchoff, unsigned int *matchlen, 94 unsigned int *matchoff, unsigned int *matchlen,
95 union nf_inet_addr *addr, __be16 *port); 95 union nf_inet_addr *addr, __be16 *port);
96extern int ct_sip_parse_address_param(const struct nf_conn *ct, const char *dptr,
97 unsigned int dataoff, unsigned int datalen,
98 const char *name,
99 unsigned int *matchoff, unsigned int *matchlen,
100 union nf_inet_addr *addr);
101extern int ct_sip_parse_numerical_param(const struct nf_conn *ct, const char *dptr,
102 unsigned int off, unsigned int datalen,
103 const char *name,
104 unsigned int *matchoff, unsigned int *matchen,
105 unsigned int *val);
96 106
97extern int ct_sip_get_sdp_header(const struct nf_conn *ct, const char *dptr, 107extern int ct_sip_get_sdp_header(const struct nf_conn *ct, const char *dptr,
98 unsigned int dataoff, unsigned int datalen, 108 unsigned int dataoff, unsigned int datalen,