1 #ifndef _IP_CONNTRACK_SIP_H
2 #define _IP_CONNTRACK_SIP_H
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__ */
19 #define SIP_INVITE 0x01
25 #define SIP_200_BYE 0x40
26 /* SIP session direction */
27 #define SIP_OUTGOING 0
28 #define SIP_INCOMING 1
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
;
46 /* This structure exists only once per master */
47 struct ip_ct_sip_master
{
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 */