blob: 2a19c5f1240f85bce4bb8f5c4a4199be67207b12 [file] [log] [blame]
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -08001/* (C) 1999-2001 Paul `Rusty' Russell
2 * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -08007 */
8
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -08009#include <linux/types.h>
10#include <linux/netfilter.h>
11#include <linux/module.h>
12#include <linux/skbuff.h>
13#include <linux/proc_fs.h>
14#include <linux/seq_file.h>
15#include <linux/percpu.h>
16#include <linux/netdevice.h>
Eric W. Biederman457c4cb2007-09-12 12:01:34 +020017#include <net/net_namespace.h>
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080018#ifdef CONFIG_SYSCTL
19#include <linux/sysctl.h>
20#endif
21
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080022#include <net/netfilter/nf_conntrack.h>
Martin Josefssonf6180122006-11-29 02:35:01 +010023#include <net/netfilter/nf_conntrack_core.h>
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080024#include <net/netfilter/nf_conntrack_l3proto.h>
Martin Josefsson605dcad2006-11-29 02:35:06 +010025#include <net/netfilter/nf_conntrack_l4proto.h>
Martin Josefsson77ab9cf2006-11-29 02:34:58 +010026#include <net/netfilter/nf_conntrack_expect.h>
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080027#include <net/netfilter/nf_conntrack_helper.h>
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080028
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080029MODULE_LICENSE("GPL");
30
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080031#ifdef CONFIG_PROC_FS
Martin Josefsson77ab9cf2006-11-29 02:34:58 +010032int
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080033print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
34 struct nf_conntrack_l3proto *l3proto,
Martin Josefsson605dcad2006-11-29 02:35:06 +010035 struct nf_conntrack_l4proto *l4proto)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080036{
Martin Josefsson605dcad2006-11-29 02:35:06 +010037 return l3proto->print_tuple(s, tuple) || l4proto->print_tuple(s, tuple);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080038}
Patrick McHardye4bd8bc2006-11-29 02:35:22 +010039EXPORT_SYMBOL_GPL(print_tuple);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080040
41#ifdef CONFIG_NF_CT_ACCT
42static unsigned int
43seq_print_counters(struct seq_file *s,
44 const struct ip_conntrack_counter *counter)
45{
46 return seq_printf(s, "packets=%llu bytes=%llu ",
47 (unsigned long long)counter->packets,
48 (unsigned long long)counter->bytes);
49}
50#else
51#define seq_print_counters(x, y) 0
52#endif
53
54struct ct_iter_state {
55 unsigned int bucket;
56};
57
Patrick McHardyf205c5e2007-07-07 22:28:14 -070058static struct hlist_node *ct_get_first(struct seq_file *seq)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080059{
60 struct ct_iter_state *st = seq->private;
61
62 for (st->bucket = 0;
63 st->bucket < nf_conntrack_htable_size;
64 st->bucket++) {
Patrick McHardyf205c5e2007-07-07 22:28:14 -070065 if (!hlist_empty(&nf_conntrack_hash[st->bucket]))
66 return nf_conntrack_hash[st->bucket].first;
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080067 }
68 return NULL;
69}
70
Patrick McHardyf205c5e2007-07-07 22:28:14 -070071static struct hlist_node *ct_get_next(struct seq_file *seq,
72 struct hlist_node *head)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080073{
74 struct ct_iter_state *st = seq->private;
75
76 head = head->next;
Patrick McHardyf205c5e2007-07-07 22:28:14 -070077 while (head == NULL) {
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080078 if (++st->bucket >= nf_conntrack_htable_size)
79 return NULL;
Patrick McHardyf205c5e2007-07-07 22:28:14 -070080 head = nf_conntrack_hash[st->bucket].first;
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080081 }
82 return head;
83}
84
Patrick McHardyf205c5e2007-07-07 22:28:14 -070085static struct hlist_node *ct_get_idx(struct seq_file *seq, loff_t pos)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080086{
Patrick McHardyf205c5e2007-07-07 22:28:14 -070087 struct hlist_node *head = ct_get_first(seq);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -080088
89 if (head)
90 while (pos && (head = ct_get_next(seq, head)))
91 pos--;
92 return pos ? NULL : head;
93}
94
95static void *ct_seq_start(struct seq_file *seq, loff_t *pos)
96{
97 read_lock_bh(&nf_conntrack_lock);
98 return ct_get_idx(seq, *pos);
99}
100
101static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos)
102{
103 (*pos)++;
104 return ct_get_next(s, v);
105}
106
107static void ct_seq_stop(struct seq_file *s, void *v)
108{
109 read_unlock_bh(&nf_conntrack_lock);
110}
111
112/* return 0 on success, 1 in case of error */
113static int ct_seq_show(struct seq_file *s, void *v)
114{
115 const struct nf_conntrack_tuple_hash *hash = v;
116 const struct nf_conn *conntrack = nf_ct_tuplehash_to_ctrack(hash);
117 struct nf_conntrack_l3proto *l3proto;
Martin Josefsson605dcad2006-11-29 02:35:06 +0100118 struct nf_conntrack_l4proto *l4proto;
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800119
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800120 NF_CT_ASSERT(conntrack);
121
122 /* we only want to print DIR_ORIGINAL */
123 if (NF_CT_DIRECTION(hash))
124 return 0;
125
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800126 l3proto = __nf_ct_l3proto_find(conntrack->tuplehash[IP_CT_DIR_ORIGINAL]
127 .tuple.src.l3num);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800128
129 NF_CT_ASSERT(l3proto);
Martin Josefsson605dcad2006-11-29 02:35:06 +0100130 l4proto = __nf_ct_l4proto_find(conntrack->tuplehash[IP_CT_DIR_ORIGINAL]
Pablo Neira Ayusoc1d10ad2006-01-05 12:19:05 -0800131 .tuple.src.l3num,
132 conntrack->tuplehash[IP_CT_DIR_ORIGINAL]
133 .tuple.dst.protonum);
Martin Josefsson605dcad2006-11-29 02:35:06 +0100134 NF_CT_ASSERT(l4proto);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800135
136 if (seq_printf(s, "%-8s %u %-8s %u %ld ",
137 l3proto->name,
138 conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num,
Martin Josefsson605dcad2006-11-29 02:35:06 +0100139 l4proto->name,
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800140 conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum,
141 timer_pending(&conntrack->timeout)
142 ? (long)(conntrack->timeout.expires - jiffies)/HZ : 0) != 0)
143 return -ENOSPC;
144
145 if (l3proto->print_conntrack(s, conntrack))
146 return -ENOSPC;
147
Martin Josefsson605dcad2006-11-29 02:35:06 +0100148 if (l4proto->print_conntrack(s, conntrack))
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800149 return -ENOSPC;
150
151 if (print_tuple(s, &conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple,
Martin Josefsson605dcad2006-11-29 02:35:06 +0100152 l3proto, l4proto))
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800153 return -ENOSPC;
154
155 if (seq_print_counters(s, &conntrack->counters[IP_CT_DIR_ORIGINAL]))
156 return -ENOSPC;
157
158 if (!(test_bit(IPS_SEEN_REPLY_BIT, &conntrack->status)))
159 if (seq_printf(s, "[UNREPLIED] "))
160 return -ENOSPC;
161
162 if (print_tuple(s, &conntrack->tuplehash[IP_CT_DIR_REPLY].tuple,
Martin Josefsson605dcad2006-11-29 02:35:06 +0100163 l3proto, l4proto))
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800164 return -ENOSPC;
165
166 if (seq_print_counters(s, &conntrack->counters[IP_CT_DIR_REPLY]))
167 return -ENOSPC;
168
169 if (test_bit(IPS_ASSURED_BIT, &conntrack->status))
170 if (seq_printf(s, "[ASSURED] "))
171 return -ENOSPC;
172
173#if defined(CONFIG_NF_CONNTRACK_MARK)
174 if (seq_printf(s, "mark=%u ", conntrack->mark))
175 return -ENOSPC;
176#endif
177
James Morris7c9728c2006-06-09 00:31:46 -0700178#ifdef CONFIG_NF_CONNTRACK_SECMARK
179 if (seq_printf(s, "secmark=%u ", conntrack->secmark))
180 return -ENOSPC;
181#endif
182
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800183 if (seq_printf(s, "use=%u\n", atomic_read(&conntrack->ct_general.use)))
184 return -ENOSPC;
YOSHIFUJI Hideakia5d29262007-07-19 10:44:21 +0900185
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800186 return 0;
187}
188
Philippe De Muyter56b3d972007-07-10 23:07:31 -0700189static const struct seq_operations ct_seq_ops = {
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800190 .start = ct_seq_start,
191 .next = ct_seq_next,
192 .stop = ct_seq_stop,
193 .show = ct_seq_show
194};
195
196static int ct_open(struct inode *inode, struct file *file)
197{
198 struct seq_file *seq;
199 struct ct_iter_state *st;
200 int ret;
201
Yoann Padioleaudd00cc42007-07-19 01:49:03 -0700202 st = kzalloc(sizeof(struct ct_iter_state), GFP_KERNEL);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800203 if (st == NULL)
204 return -ENOMEM;
205 ret = seq_open(file, &ct_seq_ops);
206 if (ret)
207 goto out_free;
208 seq = file->private_data;
209 seq->private = st;
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800210 return ret;
211out_free:
212 kfree(st);
213 return ret;
214}
215
Arjan van de Venda7071d2007-02-12 00:55:36 -0800216static const struct file_operations ct_file_ops = {
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800217 .owner = THIS_MODULE,
218 .open = ct_open,
219 .read = seq_read,
220 .llseek = seq_lseek,
221 .release = seq_release_private,
222};
223
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800224static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos)
225{
226 int cpu;
227
228 if (*pos == 0)
229 return SEQ_START_TOKEN;
230
231 for (cpu = *pos-1; cpu < NR_CPUS; ++cpu) {
232 if (!cpu_possible(cpu))
233 continue;
234 *pos = cpu + 1;
235 return &per_cpu(nf_conntrack_stat, cpu);
236 }
237
238 return NULL;
239}
240
241static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos)
242{
243 int cpu;
244
245 for (cpu = *pos; cpu < NR_CPUS; ++cpu) {
246 if (!cpu_possible(cpu))
247 continue;
248 *pos = cpu + 1;
249 return &per_cpu(nf_conntrack_stat, cpu);
250 }
251
252 return NULL;
253}
254
255static void ct_cpu_seq_stop(struct seq_file *seq, void *v)
256{
257}
258
259static int ct_cpu_seq_show(struct seq_file *seq, void *v)
260{
261 unsigned int nr_conntracks = atomic_read(&nf_conntrack_count);
262 struct ip_conntrack_stat *st = v;
263
264 if (v == SEQ_START_TOKEN) {
265 seq_printf(seq, "entries searched found new invalid ignore delete delete_list insert insert_failed drop early_drop icmp_error expect_new expect_create expect_delete\n");
266 return 0;
267 }
268
269 seq_printf(seq, "%08x %08x %08x %08x %08x %08x %08x %08x "
270 "%08x %08x %08x %08x %08x %08x %08x %08x \n",
271 nr_conntracks,
272 st->searched,
273 st->found,
274 st->new,
275 st->invalid,
276 st->ignore,
277 st->delete,
278 st->delete_list,
279 st->insert,
280 st->insert_failed,
281 st->drop,
282 st->early_drop,
283 st->error,
284
285 st->expect_new,
286 st->expect_create,
287 st->expect_delete
288 );
289 return 0;
290}
291
Philippe De Muyter56b3d972007-07-10 23:07:31 -0700292static const struct seq_operations ct_cpu_seq_ops = {
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800293 .start = ct_cpu_seq_start,
294 .next = ct_cpu_seq_next,
295 .stop = ct_cpu_seq_stop,
296 .show = ct_cpu_seq_show,
297};
298
299static int ct_cpu_seq_open(struct inode *inode, struct file *file)
300{
301 return seq_open(file, &ct_cpu_seq_ops);
302}
303
Arjan van de Venda7071d2007-02-12 00:55:36 -0800304static const struct file_operations ct_cpu_seq_fops = {
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800305 .owner = THIS_MODULE,
306 .open = ct_cpu_seq_open,
307 .read = seq_read,
308 .llseek = seq_lseek,
309 .release = seq_release_private,
310};
311#endif /* CONFIG_PROC_FS */
312
313/* Sysctl support */
314
Brian Haley94aec082006-09-18 00:05:22 -0700315int nf_conntrack_checksum __read_mostly = 1;
Patrick McHardy13b18332006-12-02 22:11:25 -0800316EXPORT_SYMBOL_GPL(nf_conntrack_checksum);
Adrian Bunk72b55822006-07-24 22:53:12 -0700317
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800318#ifdef CONFIG_SYSCTL
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800319/* Log invalid packets of a given protocol */
320static int log_invalid_proto_min = 0;
321static int log_invalid_proto_max = 255;
322
323static struct ctl_table_header *nf_ct_sysctl_header;
324
325static ctl_table nf_ct_sysctl_table[] = {
326 {
327 .ctl_name = NET_NF_CONNTRACK_MAX,
328 .procname = "nf_conntrack_max",
329 .data = &nf_conntrack_max,
330 .maxlen = sizeof(int),
331 .mode = 0644,
332 .proc_handler = &proc_dointvec,
333 },
334 {
335 .ctl_name = NET_NF_CONNTRACK_COUNT,
336 .procname = "nf_conntrack_count",
337 .data = &nf_conntrack_count,
338 .maxlen = sizeof(int),
339 .mode = 0444,
340 .proc_handler = &proc_dointvec,
341 },
342 {
343 .ctl_name = NET_NF_CONNTRACK_BUCKETS,
344 .procname = "nf_conntrack_buckets",
345 .data = &nf_conntrack_htable_size,
346 .maxlen = sizeof(unsigned int),
347 .mode = 0444,
348 .proc_handler = &proc_dointvec,
349 },
350 {
Patrick McHardy39a27a32006-05-29 18:23:54 -0700351 .ctl_name = NET_NF_CONNTRACK_CHECKSUM,
352 .procname = "nf_conntrack_checksum",
353 .data = &nf_conntrack_checksum,
354 .maxlen = sizeof(unsigned int),
355 .mode = 0644,
356 .proc_handler = &proc_dointvec,
357 },
358 {
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800359 .ctl_name = NET_NF_CONNTRACK_LOG_INVALID,
360 .procname = "nf_conntrack_log_invalid",
361 .data = &nf_ct_log_invalid,
362 .maxlen = sizeof(unsigned int),
363 .mode = 0644,
364 .proc_handler = &proc_dointvec_minmax,
365 .strategy = &sysctl_intvec,
366 .extra1 = &log_invalid_proto_min,
367 .extra2 = &log_invalid_proto_max,
368 },
Patrick McHardyf264a7d2007-07-07 22:36:24 -0700369 {
370 .ctl_name = CTL_UNNUMBERED,
371 .procname = "nf_conntrack_expect_max",
372 .data = &nf_ct_expect_max,
373 .maxlen = sizeof(int),
374 .mode = 0644,
375 .proc_handler = &proc_dointvec,
376 },
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800377 { .ctl_name = 0 }
378};
379
380#define NET_NF_CONNTRACK_MAX 2089
381
382static ctl_table nf_ct_netfilter_table[] = {
383 {
384 .ctl_name = NET_NETFILTER,
385 .procname = "netfilter",
386 .mode = 0555,
387 .child = nf_ct_sysctl_table,
388 },
389 {
390 .ctl_name = NET_NF_CONNTRACK_MAX,
391 .procname = "nf_conntrack_max",
392 .data = &nf_conntrack_max,
393 .maxlen = sizeof(int),
394 .mode = 0644,
395 .proc_handler = &proc_dointvec,
396 },
397 { .ctl_name = 0 }
398};
399
400static ctl_table nf_ct_net_table[] = {
401 {
402 .ctl_name = CTL_NET,
403 .procname = "net",
404 .mode = 0555,
405 .child = nf_ct_netfilter_table,
406 },
407 { .ctl_name = 0 }
408};
Patrick McHardy13b18332006-12-02 22:11:25 -0800409EXPORT_SYMBOL_GPL(nf_ct_log_invalid);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800410#endif /* CONFIG_SYSCTL */
411
Andrew Morton65b4b4e2006-03-28 16:37:06 -0800412static int __init nf_conntrack_standalone_init(void)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800413{
Patrick McHardy32292a72006-04-06 14:11:30 -0700414#ifdef CONFIG_PROC_FS
Patrick McHardye9c1b082007-07-07 22:32:53 -0700415 struct proc_dir_entry *proc, *proc_stat;
Patrick McHardy32292a72006-04-06 14:11:30 -0700416#endif
417 int ret = 0;
418
419 ret = nf_conntrack_init();
420 if (ret < 0)
421 return ret;
422
423#ifdef CONFIG_PROC_FS
Eric W. Biederman457c4cb2007-09-12 12:01:34 +0200424 proc = proc_net_fops_create(&init_net, "nf_conntrack", 0440, &ct_file_ops);
Patrick McHardy32292a72006-04-06 14:11:30 -0700425 if (!proc) goto cleanup_init;
426
Eric W. Biederman457c4cb2007-09-12 12:01:34 +0200427 proc_stat = create_proc_entry("nf_conntrack", S_IRUGO, init_net.proc_net_stat);
Patrick McHardy32292a72006-04-06 14:11:30 -0700428 if (!proc_stat)
Patrick McHardye9c1b082007-07-07 22:32:53 -0700429 goto cleanup_proc;
Patrick McHardy32292a72006-04-06 14:11:30 -0700430
431 proc_stat->proc_fops = &ct_cpu_seq_fops;
432 proc_stat->owner = THIS_MODULE;
433#endif
434#ifdef CONFIG_SYSCTL
Eric W. Biederman0b4d4142007-02-14 00:34:09 -0800435 nf_ct_sysctl_header = register_sysctl_table(nf_ct_net_table);
Patrick McHardy32292a72006-04-06 14:11:30 -0700436 if (nf_ct_sysctl_header == NULL) {
437 printk("nf_conntrack: can't register to sysctl.\n");
438 ret = -ENOMEM;
439 goto cleanup_proc_stat;
440 }
441#endif
442 return ret;
443
444#ifdef CONFIG_SYSCTL
445 cleanup_proc_stat:
446#endif
447#ifdef CONFIG_PROC_FS
Eric W. Biederman457c4cb2007-09-12 12:01:34 +0200448 remove_proc_entry("nf_conntrack", init_net. proc_net_stat);
Patrick McHardy32292a72006-04-06 14:11:30 -0700449 cleanup_proc:
Eric W. Biederman457c4cb2007-09-12 12:01:34 +0200450 proc_net_remove(&init_net, "nf_conntrack");
Patrick McHardy32292a72006-04-06 14:11:30 -0700451 cleanup_init:
452#endif /* CNFIG_PROC_FS */
453 nf_conntrack_cleanup();
454 return ret;
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800455}
456
Andrew Morton65b4b4e2006-03-28 16:37:06 -0800457static void __exit nf_conntrack_standalone_fini(void)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800458{
Patrick McHardy32292a72006-04-06 14:11:30 -0700459#ifdef CONFIG_SYSCTL
YOSHIFUJI Hideaki601e68e2007-02-12 11:15:49 -0800460 unregister_sysctl_table(nf_ct_sysctl_header);
Patrick McHardy32292a72006-04-06 14:11:30 -0700461#endif
462#ifdef CONFIG_PROC_FS
Eric W. Biederman457c4cb2007-09-12 12:01:34 +0200463 remove_proc_entry("nf_conntrack", init_net.proc_net_stat);
464 proc_net_remove(&init_net, "nf_conntrack");
Patrick McHardy32292a72006-04-06 14:11:30 -0700465#endif /* CNFIG_PROC_FS */
466 nf_conntrack_cleanup();
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800467}
468
Andrew Morton65b4b4e2006-03-28 16:37:06 -0800469module_init(nf_conntrack_standalone_init);
470module_exit(nf_conntrack_standalone_fini);
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800471
472/* Some modules need us, but don't depend directly on any symbol.
473 They should call this. */
Harald Welte2e4e6a12006-01-12 13:30:04 -0800474void need_conntrack(void)
Yasuyuki Kozakai9fb9cbb2005-11-09 16:38:16 -0800475{
476}
Patrick McHardy13b18332006-12-02 22:11:25 -0800477EXPORT_SYMBOL_GPL(need_conntrack);