diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_helper_h323.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ip_conntrack_helper_h323.c b/net/ipv4/netfilter/ip_conntrack_helper_h323.c index 11c652fa3046..dccc6c301efd 100644 --- a/net/ipv4/netfilter/ip_conntrack_helper_h323.c +++ b/net/ipv4/netfilter/ip_conntrack_helper_h323.c | |||
@@ -61,6 +61,10 @@ | |||
61 | #endif | 61 | #endif |
62 | 62 | ||
63 | /* Parameters */ | 63 | /* Parameters */ |
64 | static unsigned int default_rrq_ttl = 300; | ||
65 | module_param(default_rrq_ttl, uint, 0600); | ||
66 | MODULE_PARM_DESC(default_rrq_ttl, "use this TTL if it's missing in RRQ"); | ||
67 | |||
64 | static int gkrouted_only = 1; | 68 | static int gkrouted_only = 1; |
65 | module_param(gkrouted_only, int, 0600); | 69 | module_param(gkrouted_only, int, 0600); |
66 | MODULE_PARM_DESC(gkrouted_only, "only accept calls from gatekeeper"); | 70 | MODULE_PARM_DESC(gkrouted_only, "only accept calls from gatekeeper"); |
@@ -1300,7 +1304,7 @@ static int process_rrq(struct sk_buff **pskb, struct ip_conntrack *ct, | |||
1300 | DEBUGP("ip_ct_ras: RRQ TTL = %u seconds\n", rrq->timeToLive); | 1304 | DEBUGP("ip_ct_ras: RRQ TTL = %u seconds\n", rrq->timeToLive); |
1301 | info->timeout = rrq->timeToLive; | 1305 | info->timeout = rrq->timeToLive; |
1302 | } else | 1306 | } else |
1303 | info->timeout = 0; | 1307 | info->timeout = default_rrq_ttl; |
1304 | 1308 | ||
1305 | return 0; | 1309 | return 0; |
1306 | } | 1310 | } |