toolchain: switch kernel 2.4 builds to gcc 4.2.4
[tomato.git] / tools / brcm / K24 / hndtools-mipsel-uclibc-4.1.2 / include / linux / netfilter_ipv4 / ip_conntrack_sip.h
blob7de89a2555665bb159cf140da1b8abb99cba2ce1
1 #ifndef _IP_CONNTRACK_SIP_H
2 #define _IP_CONNTRACK_SIP_H
3 /* SIP tracking. */
5 #ifdef __KERNEL__
7 #include <linux/netfilter_ipv4/lockhelp.h>
9 /* Protects sip part of conntracks */
10 DECLARE_LOCK_EXTERN(ip_sip_lock);
12 #define SIP_PORT 5060 /* UDP */
13 #define SIP_EXPIRES 3600 /* seconds */
14 #define RTP_TIMEOUT 180 /* seconds */
16 #endif /* __KERNEL__ */
18 /* SIP Request */
19 #define SIP_INVITE 0x01
20 #define SIP_ACK 0x02
21 #define SIP_BYE 0x04
22 /* SIP Response */
23 #define SIP_100 0x10
24 #define SIP_200 0x20
25 #define SIP_200_BYE 0x40
26 /* SIP session direction */
27 #define SIP_OUTGOING 0
28 #define SIP_INCOMING 1
30 enum ip_ct_conntype
32 CONN_SIP,
33 CONN_RTP,
34 CONN_RTCP,
37 /* This structure is per expected connection */
38 struct ip_ct_sip_expect
40 u_int16_t port; /* TCP port that was to be used */
42 enum ip_ct_conntype type;
43 int nated;
46 /* This structure exists only once per master */
47 struct ip_ct_sip_master {
48 int mangled;
49 u_int16_t rtpport;
52 extern u_int16_t find_sdp_audio_port(const char *data, size_t dlen,
53 unsigned int *numoff, unsigned int *numlen);
54 extern int find_sdp_rtp_addr(const char *data, size_t dlen,
55 unsigned int *numoff, unsigned int *numlen, u_int32_t *addr);
56 #endif /* _IP_CONNTRACK_SIP_H */