Committer: Michael Beasley <mike@snafu.setup>
[mikesnafu-overlay.git] / include / linux / netfilter / nf_conntrack_sip.h
blob8e5ce1ca7bfcd48276c5b17c8572824abb3f7ea1
1 #ifndef __NF_CONNTRACK_SIP_H__
2 #define __NF_CONNTRACK_SIP_H__
3 #ifdef __KERNEL__
5 #define SIP_PORT 5060
6 #define SIP_TIMEOUT 3600
8 enum sip_header_pos {
9 POS_REG_REQ_URI,
10 POS_REQ_URI,
11 POS_FROM,
12 POS_TO,
13 POS_VIA,
14 POS_CONTACT,
15 POS_CONTENT,
16 POS_MEDIA,
17 POS_OWNER_IP4,
18 POS_CONNECTION_IP4,
19 POS_OWNER_IP6,
20 POS_CONNECTION_IP6,
21 POS_SDP_HEADER,
24 extern unsigned int (*nf_nat_sip_hook)(struct sk_buff *skb,
25 enum ip_conntrack_info ctinfo,
26 struct nf_conn *ct,
27 const char **dptr);
28 extern unsigned int (*nf_nat_sdp_hook)(struct sk_buff *skb,
29 enum ip_conntrack_info ctinfo,
30 struct nf_conntrack_expect *exp,
31 const char *dptr);
33 extern int ct_sip_get_info(const struct nf_conn *ct, const char *dptr,
34 size_t dlen, unsigned int *matchoff,
35 unsigned int *matchlen, enum sip_header_pos pos);
36 extern int ct_sip_lnlen(const char *line, const char *limit);
37 extern const char *ct_sip_search(const char *needle, const char *haystack,
38 size_t needle_len, size_t haystack_len,
39 int case_sensitive);
40 #endif /* __KERNEL__ */
41 #endif /* __NF_CONNTRACK_SIP_H__ */