-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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>
- Loading branch information
Jing Min Zhao
authored and
David S. Miller
committed
Mar 21, 2006
1 parent
30ca3e3
commit 5e35941
Showing
10 changed files
with
6,231 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.