equal
deleted
inserted
replaced
18 #include <net/netfilter/nf_conntrack_tuple.h> |
18 #include <net/netfilter/nf_conntrack_tuple.h> |
19 #include <net/netfilter/nf_conntrack_l4proto.h> |
19 #include <net/netfilter/nf_conntrack_l4proto.h> |
20 #include <net/netfilter/nf_conntrack_core.h> |
20 #include <net/netfilter/nf_conntrack_core.h> |
21 #include <net/netfilter/nf_log.h> |
21 #include <net/netfilter/nf_log.h> |
22 |
22 |
23 static unsigned long nf_ct_icmp_timeout __read_mostly = 30*HZ; |
23 static unsigned int nf_ct_icmp_timeout __read_mostly = 30*HZ; |
24 |
24 |
25 static bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, |
25 static bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, |
26 struct nf_conntrack_tuple *tuple) |
26 struct nf_conntrack_tuple *tuple) |
27 { |
27 { |
28 const struct icmphdr *hp; |
28 const struct icmphdr *hp; |
270 { |
270 { |
271 .procname = "nf_conntrack_icmp_timeout", |
271 .procname = "nf_conntrack_icmp_timeout", |
272 .data = &nf_ct_icmp_timeout, |
272 .data = &nf_ct_icmp_timeout, |
273 .maxlen = sizeof(unsigned int), |
273 .maxlen = sizeof(unsigned int), |
274 .mode = 0644, |
274 .mode = 0644, |
275 .proc_handler = &proc_dointvec_jiffies, |
275 .proc_handler = proc_dointvec_jiffies, |
276 }, |
276 }, |
277 { |
277 { |
278 .ctl_name = 0 |
278 .ctl_name = 0 |
279 } |
279 } |
280 }; |
280 }; |
283 { |
283 { |
284 .procname = "ip_conntrack_icmp_timeout", |
284 .procname = "ip_conntrack_icmp_timeout", |
285 .data = &nf_ct_icmp_timeout, |
285 .data = &nf_ct_icmp_timeout, |
286 .maxlen = sizeof(unsigned int), |
286 .maxlen = sizeof(unsigned int), |
287 .mode = 0644, |
287 .mode = 0644, |
288 .proc_handler = &proc_dointvec_jiffies, |
288 .proc_handler = proc_dointvec_jiffies, |
289 }, |
289 }, |
290 { |
290 { |
291 .ctl_name = 0 |
291 .ctl_name = 0 |
292 } |
292 } |
293 }; |
293 }; |