aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netfilter_ipv4/ip_conntrack_h323.h
diff options
context:
space:
mode:
authorJing Min Zhao <zhaojignmin@hotmail.com>2006-03-20 23:41:17 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-20 23:41:17 -0800
commit5e35941d990123f155b02d5663e51a24f816b6f3 (patch)
tree90499f3247e64210213d7b4da936f739d7a9711c /include/linux/netfilter_ipv4/ip_conntrack_h323.h
parent30ca3e376e82cc44488b1d377adfb10b5818548e (diff)
downloadlinux-5e35941d990123f155b02d5663e51a24f816b6f3.tar.gz
[NETFILTER]: Add H.323 conntrack/NAT helper
Signed-off-by: Jing Min Zhao <zhaojignmin@hotmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netfilter_ipv4/ip_conntrack_h323.h')
-rw-r--r--include/linux/netfilter_ipv4/ip_conntrack_h323.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/netfilter_ipv4/ip_conntrack_h323.h b/include/linux/netfilter_ipv4/ip_conntrack_h323.h
new file mode 100644
index 0000000000000..0987cea538403
--- /dev/null
+++ b/include/linux/netfilter_ipv4/ip_conntrack_h323.h
@@ -0,0 +1,30 @@
+#ifndef _IP_CONNTRACK_H323_H
+#define _IP_CONNTRACK_H323_H
+
+#ifdef __KERNEL__
+
+#define RAS_PORT 1719
+#define Q931_PORT 1720
+#define H323_RTP_CHANNEL_MAX 4 /* Audio, video, FAX and other */
+
+/* This structure exists only once per master */
+struct ip_ct_h323_master {
+
+ /* Original and NATed Q.931 or H.245 signal ports */
+ u_int16_t sig_port[IP_CT_DIR_MAX];
+
+ /* Original and NATed RTP ports */
+ u_int16_t rtp_port[H323_RTP_CHANNEL_MAX][IP_CT_DIR_MAX];
+
+ union {
+ /* RAS connection timeout */
+ u_int32_t timeout;
+
+ /* Next TPKT length (for separate TPKT header and data) */
+ u_int16_t tpkt_len[IP_CT_DIR_MAX];
+ };
+};
+
+#endif
+
+#endif