diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netfilter/nf_conntrack_sip.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/netfilter/nf_conntrack_sip.h b/include/linux/netfilter/nf_conntrack_sip.h index 87e402825dba..7cc84ed0c5da 100644 --- a/include/linux/netfilter/nf_conntrack_sip.h +++ b/include/linux/netfilter/nf_conntrack_sip.h | |||
@@ -5,6 +5,17 @@ | |||
5 | #define SIP_PORT 5060 | 5 | #define SIP_PORT 5060 |
6 | #define SIP_TIMEOUT 3600 | 6 | #define SIP_TIMEOUT 3600 |
7 | 7 | ||
8 | struct nf_ct_sip_master { | ||
9 | unsigned int register_cseq; | ||
10 | }; | ||
11 | |||
12 | enum sip_expectation_classes { | ||
13 | SIP_EXPECT_SIGNALLING, | ||
14 | SIP_EXPECT_AUDIO, | ||
15 | __SIP_EXPECT_MAX | ||
16 | }; | ||
17 | #define SIP_EXPECT_MAX (__SIP_EXPECT_MAX - 1) | ||
18 | |||
8 | struct sip_handler { | 19 | struct sip_handler { |
9 | const char *method; | 20 | const char *method; |
10 | unsigned int len; | 21 | unsigned int len; |
@@ -59,6 +70,7 @@ enum sip_header_types { | |||
59 | SIP_HDR_TO, | 70 | SIP_HDR_TO, |
60 | SIP_HDR_CONTACT, | 71 | SIP_HDR_CONTACT, |
61 | SIP_HDR_VIA, | 72 | SIP_HDR_VIA, |
73 | SIP_HDR_EXPIRES, | ||
62 | SIP_HDR_CONTENT_LENGTH, | 74 | SIP_HDR_CONTENT_LENGTH, |
63 | }; | 75 | }; |
64 | 76 | ||
@@ -75,6 +87,12 @@ enum sdp_header_types { | |||
75 | extern unsigned int (*nf_nat_sip_hook)(struct sk_buff *skb, | 87 | extern unsigned int (*nf_nat_sip_hook)(struct sk_buff *skb, |
76 | const char **dptr, | 88 | const char **dptr, |
77 | unsigned int *datalen); | 89 | unsigned int *datalen); |
90 | extern unsigned int (*nf_nat_sip_expect_hook)(struct sk_buff *skb, | ||
91 | const char **dptr, | ||
92 | unsigned int *datalen, | ||
93 | struct nf_conntrack_expect *exp, | ||
94 | unsigned int matchoff, | ||
95 | unsigned int matchlen); | ||
78 | extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff *skb, | 96 | extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff *skb, |
79 | const char **dptr, | 97 | const char **dptr, |
80 | unsigned int *datalen, | 98 | unsigned int *datalen, |