2283a268694989cc19edd41ad31786e09676382d
[deliverable/linux.git] / net / netfilter / nf_conntrack_standalone.c
1 /* This file contains all the functions required for the standalone
2 nf_conntrack module.
3
4 These are not required by the compatibility layer.
5 */
6
7 /* (C) 1999-2001 Paul `Rusty' Russell
8 * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 *
14 * 16 Dec 2003: Yasuyuki Kozakai @USAGI <yasuyuki.kozakai@toshiba.co.jp>
15 * - generalize L3 protocol dependent part.
16 *
17 * Derived from net/ipv4/netfilter/ip_conntrack_standalone.c
18 */
19
20 #include <linux/types.h>
21 #include <linux/netfilter.h>
22 #include <linux/module.h>
23 #include <linux/skbuff.h>
24 #include <linux/proc_fs.h>
25 #include <linux/seq_file.h>
26 #include <linux/percpu.h>
27 #include <linux/netdevice.h>
28 #ifdef CONFIG_SYSCTL
29 #include <linux/sysctl.h>
30 #endif
31
32 #include <net/netfilter/nf_conntrack.h>
33 #include <net/netfilter/nf_conntrack_core.h>
34 #include <net/netfilter/nf_conntrack_l3proto.h>
35 #include <net/netfilter/nf_conntrack_l4proto.h>
36 #include <net/netfilter/nf_conntrack_expect.h>
37 #include <net/netfilter/nf_conntrack_helper.h>
38
39 #if 0
40 #define DEBUGP printk
41 #else
42 #define DEBUGP(format, args...)
43 #endif
44
45 MODULE_LICENSE("GPL");
46
47 #ifdef CONFIG_PROC_FS
48 int
49 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
50 struct nf_conntrack_l3proto *l3proto,
51 struct nf_conntrack_l4proto *l4proto)
52 {
53 return l3proto->print_tuple(s, tuple) || l4proto->print_tuple(s, tuple);
54 }
55
56 #ifdef CONFIG_NF_CT_ACCT
57 static unsigned int
58 seq_print_counters(struct seq_file *s,
59 const struct ip_conntrack_counter *counter)
60 {
61 return seq_printf(s, "packets=%llu bytes=%llu ",
62 (unsigned long long)counter->packets,
63 (unsigned long long)counter->bytes);
64 }
65 #else
66 #define seq_print_counters(x, y) 0
67 #endif
68
69 struct ct_iter_state {
70 unsigned int bucket;
71 };
72
73 static struct list_head *ct_get_first(struct seq_file *seq)
74 {
75 struct ct_iter_state *st = seq->private;
76
77 for (st->bucket = 0;
78 st->bucket < nf_conntrack_htable_size;
79 st->bucket++) {
80 if (!list_empty(&nf_conntrack_hash[st->bucket]))
81 return nf_conntrack_hash[st->bucket].next;
82 }
83 return NULL;
84 }
85
86 static struct list_head *ct_get_next(struct seq_file *seq, struct list_head *head)
87 {
88 struct ct_iter_state *st = seq->private;
89
90 head = head->next;
91 while (head == &nf_conntrack_hash[st->bucket]) {
92 if (++st->bucket >= nf_conntrack_htable_size)
93 return NULL;
94 head = nf_conntrack_hash[st->bucket].next;
95 }
96 return head;
97 }
98
99 static struct list_head *ct_get_idx(struct seq_file *seq, loff_t pos)
100 {
101 struct list_head *head = ct_get_first(seq);
102
103 if (head)
104 while (pos && (head = ct_get_next(seq, head)))
105 pos--;
106 return pos ? NULL : head;
107 }
108
109 static void *ct_seq_start(struct seq_file *seq, loff_t *pos)
110 {
111 read_lock_bh(&nf_conntrack_lock);
112 return ct_get_idx(seq, *pos);
113 }
114
115 static void *ct_seq_next(struct seq_file *s, void *v, loff_t *pos)
116 {
117 (*pos)++;
118 return ct_get_next(s, v);
119 }
120
121 static void ct_seq_stop(struct seq_file *s, void *v)
122 {
123 read_unlock_bh(&nf_conntrack_lock);
124 }
125
126 /* return 0 on success, 1 in case of error */
127 static int ct_seq_show(struct seq_file *s, void *v)
128 {
129 const struct nf_conntrack_tuple_hash *hash = v;
130 const struct nf_conn *conntrack = nf_ct_tuplehash_to_ctrack(hash);
131 struct nf_conntrack_l3proto *l3proto;
132 struct nf_conntrack_l4proto *l4proto;
133
134 NF_CT_ASSERT(conntrack);
135
136 /* we only want to print DIR_ORIGINAL */
137 if (NF_CT_DIRECTION(hash))
138 return 0;
139
140 l3proto = __nf_ct_l3proto_find(conntrack->tuplehash[IP_CT_DIR_ORIGINAL]
141 .tuple.src.l3num);
142
143 NF_CT_ASSERT(l3proto);
144 l4proto = __nf_ct_l4proto_find(conntrack->tuplehash[IP_CT_DIR_ORIGINAL]
145 .tuple.src.l3num,
146 conntrack->tuplehash[IP_CT_DIR_ORIGINAL]
147 .tuple.dst.protonum);
148 NF_CT_ASSERT(l4proto);
149
150 if (seq_printf(s, "%-8s %u %-8s %u %ld ",
151 l3proto->name,
152 conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num,
153 l4proto->name,
154 conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum,
155 timer_pending(&conntrack->timeout)
156 ? (long)(conntrack->timeout.expires - jiffies)/HZ : 0) != 0)
157 return -ENOSPC;
158
159 if (l3proto->print_conntrack(s, conntrack))
160 return -ENOSPC;
161
162 if (l4proto->print_conntrack(s, conntrack))
163 return -ENOSPC;
164
165 if (print_tuple(s, &conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple,
166 l3proto, l4proto))
167 return -ENOSPC;
168
169 if (seq_print_counters(s, &conntrack->counters[IP_CT_DIR_ORIGINAL]))
170 return -ENOSPC;
171
172 if (!(test_bit(IPS_SEEN_REPLY_BIT, &conntrack->status)))
173 if (seq_printf(s, "[UNREPLIED] "))
174 return -ENOSPC;
175
176 if (print_tuple(s, &conntrack->tuplehash[IP_CT_DIR_REPLY].tuple,
177 l3proto, l4proto))
178 return -ENOSPC;
179
180 if (seq_print_counters(s, &conntrack->counters[IP_CT_DIR_REPLY]))
181 return -ENOSPC;
182
183 if (test_bit(IPS_ASSURED_BIT, &conntrack->status))
184 if (seq_printf(s, "[ASSURED] "))
185 return -ENOSPC;
186
187 #if defined(CONFIG_NF_CONNTRACK_MARK)
188 if (seq_printf(s, "mark=%u ", conntrack->mark))
189 return -ENOSPC;
190 #endif
191
192 #ifdef CONFIG_NF_CONNTRACK_SECMARK
193 if (seq_printf(s, "secmark=%u ", conntrack->secmark))
194 return -ENOSPC;
195 #endif
196
197 if (seq_printf(s, "use=%u\n", atomic_read(&conntrack->ct_general.use)))
198 return -ENOSPC;
199
200 return 0;
201 }
202
203 static struct seq_operations ct_seq_ops = {
204 .start = ct_seq_start,
205 .next = ct_seq_next,
206 .stop = ct_seq_stop,
207 .show = ct_seq_show
208 };
209
210 static int ct_open(struct inode *inode, struct file *file)
211 {
212 struct seq_file *seq;
213 struct ct_iter_state *st;
214 int ret;
215
216 st = kmalloc(sizeof(struct ct_iter_state), GFP_KERNEL);
217 if (st == NULL)
218 return -ENOMEM;
219 ret = seq_open(file, &ct_seq_ops);
220 if (ret)
221 goto out_free;
222 seq = file->private_data;
223 seq->private = st;
224 memset(st, 0, sizeof(struct ct_iter_state));
225 return ret;
226 out_free:
227 kfree(st);
228 return ret;
229 }
230
231 static struct file_operations ct_file_ops = {
232 .owner = THIS_MODULE,
233 .open = ct_open,
234 .read = seq_read,
235 .llseek = seq_lseek,
236 .release = seq_release_private,
237 };
238
239 static void *ct_cpu_seq_start(struct seq_file *seq, loff_t *pos)
240 {
241 int cpu;
242
243 if (*pos == 0)
244 return SEQ_START_TOKEN;
245
246 for (cpu = *pos-1; cpu < NR_CPUS; ++cpu) {
247 if (!cpu_possible(cpu))
248 continue;
249 *pos = cpu + 1;
250 return &per_cpu(nf_conntrack_stat, cpu);
251 }
252
253 return NULL;
254 }
255
256 static void *ct_cpu_seq_next(struct seq_file *seq, void *v, loff_t *pos)
257 {
258 int cpu;
259
260 for (cpu = *pos; cpu < NR_CPUS; ++cpu) {
261 if (!cpu_possible(cpu))
262 continue;
263 *pos = cpu + 1;
264 return &per_cpu(nf_conntrack_stat, cpu);
265 }
266
267 return NULL;
268 }
269
270 static void ct_cpu_seq_stop(struct seq_file *seq, void *v)
271 {
272 }
273
274 static int ct_cpu_seq_show(struct seq_file *seq, void *v)
275 {
276 unsigned int nr_conntracks = atomic_read(&nf_conntrack_count);
277 struct ip_conntrack_stat *st = v;
278
279 if (v == SEQ_START_TOKEN) {
280 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");
281 return 0;
282 }
283
284 seq_printf(seq, "%08x %08x %08x %08x %08x %08x %08x %08x "
285 "%08x %08x %08x %08x %08x %08x %08x %08x \n",
286 nr_conntracks,
287 st->searched,
288 st->found,
289 st->new,
290 st->invalid,
291 st->ignore,
292 st->delete,
293 st->delete_list,
294 st->insert,
295 st->insert_failed,
296 st->drop,
297 st->early_drop,
298 st->error,
299
300 st->expect_new,
301 st->expect_create,
302 st->expect_delete
303 );
304 return 0;
305 }
306
307 static struct seq_operations ct_cpu_seq_ops = {
308 .start = ct_cpu_seq_start,
309 .next = ct_cpu_seq_next,
310 .stop = ct_cpu_seq_stop,
311 .show = ct_cpu_seq_show,
312 };
313
314 static int ct_cpu_seq_open(struct inode *inode, struct file *file)
315 {
316 return seq_open(file, &ct_cpu_seq_ops);
317 }
318
319 static struct file_operations ct_cpu_seq_fops = {
320 .owner = THIS_MODULE,
321 .open = ct_cpu_seq_open,
322 .read = seq_read,
323 .llseek = seq_lseek,
324 .release = seq_release_private,
325 };
326 #endif /* CONFIG_PROC_FS */
327
328 /* Sysctl support */
329
330 int nf_conntrack_checksum __read_mostly = 1;
331
332 #ifdef CONFIG_SYSCTL
333
334 /* From nf_conntrack_proto_tcp.c */
335 extern unsigned int nf_ct_tcp_timeout_syn_sent;
336 extern unsigned int nf_ct_tcp_timeout_syn_recv;
337 extern unsigned int nf_ct_tcp_timeout_established;
338 extern unsigned int nf_ct_tcp_timeout_fin_wait;
339 extern unsigned int nf_ct_tcp_timeout_close_wait;
340 extern unsigned int nf_ct_tcp_timeout_last_ack;
341 extern unsigned int nf_ct_tcp_timeout_time_wait;
342 extern unsigned int nf_ct_tcp_timeout_close;
343 extern unsigned int nf_ct_tcp_timeout_max_retrans;
344 extern int nf_ct_tcp_loose;
345 extern int nf_ct_tcp_be_liberal;
346 extern int nf_ct_tcp_max_retrans;
347
348 /* From nf_conntrack_proto_udp.c */
349 extern unsigned int nf_ct_udp_timeout;
350 extern unsigned int nf_ct_udp_timeout_stream;
351
352 /* From nf_conntrack_proto_generic.c */
353 extern unsigned int nf_ct_generic_timeout;
354
355 /* Log invalid packets of a given protocol */
356 static int log_invalid_proto_min = 0;
357 static int log_invalid_proto_max = 255;
358
359 static struct ctl_table_header *nf_ct_sysctl_header;
360
361 static ctl_table nf_ct_sysctl_table[] = {
362 {
363 .ctl_name = NET_NF_CONNTRACK_MAX,
364 .procname = "nf_conntrack_max",
365 .data = &nf_conntrack_max,
366 .maxlen = sizeof(int),
367 .mode = 0644,
368 .proc_handler = &proc_dointvec,
369 },
370 {
371 .ctl_name = NET_NF_CONNTRACK_COUNT,
372 .procname = "nf_conntrack_count",
373 .data = &nf_conntrack_count,
374 .maxlen = sizeof(int),
375 .mode = 0444,
376 .proc_handler = &proc_dointvec,
377 },
378 {
379 .ctl_name = NET_NF_CONNTRACK_BUCKETS,
380 .procname = "nf_conntrack_buckets",
381 .data = &nf_conntrack_htable_size,
382 .maxlen = sizeof(unsigned int),
383 .mode = 0444,
384 .proc_handler = &proc_dointvec,
385 },
386 {
387 .ctl_name = NET_NF_CONNTRACK_CHECKSUM,
388 .procname = "nf_conntrack_checksum",
389 .data = &nf_conntrack_checksum,
390 .maxlen = sizeof(unsigned int),
391 .mode = 0644,
392 .proc_handler = &proc_dointvec,
393 },
394 {
395 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_SYN_SENT,
396 .procname = "nf_conntrack_tcp_timeout_syn_sent",
397 .data = &nf_ct_tcp_timeout_syn_sent,
398 .maxlen = sizeof(unsigned int),
399 .mode = 0644,
400 .proc_handler = &proc_dointvec_jiffies,
401 },
402 {
403 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_SYN_RECV,
404 .procname = "nf_conntrack_tcp_timeout_syn_recv",
405 .data = &nf_ct_tcp_timeout_syn_recv,
406 .maxlen = sizeof(unsigned int),
407 .mode = 0644,
408 .proc_handler = &proc_dointvec_jiffies,
409 },
410 {
411 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_ESTABLISHED,
412 .procname = "nf_conntrack_tcp_timeout_established",
413 .data = &nf_ct_tcp_timeout_established,
414 .maxlen = sizeof(unsigned int),
415 .mode = 0644,
416 .proc_handler = &proc_dointvec_jiffies,
417 },
418 {
419 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_FIN_WAIT,
420 .procname = "nf_conntrack_tcp_timeout_fin_wait",
421 .data = &nf_ct_tcp_timeout_fin_wait,
422 .maxlen = sizeof(unsigned int),
423 .mode = 0644,
424 .proc_handler = &proc_dointvec_jiffies,
425 },
426 {
427 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_CLOSE_WAIT,
428 .procname = "nf_conntrack_tcp_timeout_close_wait",
429 .data = &nf_ct_tcp_timeout_close_wait,
430 .maxlen = sizeof(unsigned int),
431 .mode = 0644,
432 .proc_handler = &proc_dointvec_jiffies,
433 },
434 {
435 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_LAST_ACK,
436 .procname = "nf_conntrack_tcp_timeout_last_ack",
437 .data = &nf_ct_tcp_timeout_last_ack,
438 .maxlen = sizeof(unsigned int),
439 .mode = 0644,
440 .proc_handler = &proc_dointvec_jiffies,
441 },
442 {
443 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_TIME_WAIT,
444 .procname = "nf_conntrack_tcp_timeout_time_wait",
445 .data = &nf_ct_tcp_timeout_time_wait,
446 .maxlen = sizeof(unsigned int),
447 .mode = 0644,
448 .proc_handler = &proc_dointvec_jiffies,
449 },
450 {
451 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_CLOSE,
452 .procname = "nf_conntrack_tcp_timeout_close",
453 .data = &nf_ct_tcp_timeout_close,
454 .maxlen = sizeof(unsigned int),
455 .mode = 0644,
456 .proc_handler = &proc_dointvec_jiffies,
457 },
458 {
459 .ctl_name = NET_NF_CONNTRACK_UDP_TIMEOUT,
460 .procname = "nf_conntrack_udp_timeout",
461 .data = &nf_ct_udp_timeout,
462 .maxlen = sizeof(unsigned int),
463 .mode = 0644,
464 .proc_handler = &proc_dointvec_jiffies,
465 },
466 {
467 .ctl_name = NET_NF_CONNTRACK_UDP_TIMEOUT_STREAM,
468 .procname = "nf_conntrack_udp_timeout_stream",
469 .data = &nf_ct_udp_timeout_stream,
470 .maxlen = sizeof(unsigned int),
471 .mode = 0644,
472 .proc_handler = &proc_dointvec_jiffies,
473 },
474 {
475 .ctl_name = NET_NF_CONNTRACK_GENERIC_TIMEOUT,
476 .procname = "nf_conntrack_generic_timeout",
477 .data = &nf_ct_generic_timeout,
478 .maxlen = sizeof(unsigned int),
479 .mode = 0644,
480 .proc_handler = &proc_dointvec_jiffies,
481 },
482 {
483 .ctl_name = NET_NF_CONNTRACK_LOG_INVALID,
484 .procname = "nf_conntrack_log_invalid",
485 .data = &nf_ct_log_invalid,
486 .maxlen = sizeof(unsigned int),
487 .mode = 0644,
488 .proc_handler = &proc_dointvec_minmax,
489 .strategy = &sysctl_intvec,
490 .extra1 = &log_invalid_proto_min,
491 .extra2 = &log_invalid_proto_max,
492 },
493 {
494 .ctl_name = NET_NF_CONNTRACK_TCP_TIMEOUT_MAX_RETRANS,
495 .procname = "nf_conntrack_tcp_timeout_max_retrans",
496 .data = &nf_ct_tcp_timeout_max_retrans,
497 .maxlen = sizeof(unsigned int),
498 .mode = 0644,
499 .proc_handler = &proc_dointvec_jiffies,
500 },
501 {
502 .ctl_name = NET_NF_CONNTRACK_TCP_LOOSE,
503 .procname = "nf_conntrack_tcp_loose",
504 .data = &nf_ct_tcp_loose,
505 .maxlen = sizeof(unsigned int),
506 .mode = 0644,
507 .proc_handler = &proc_dointvec,
508 },
509 {
510 .ctl_name = NET_NF_CONNTRACK_TCP_BE_LIBERAL,
511 .procname = "nf_conntrack_tcp_be_liberal",
512 .data = &nf_ct_tcp_be_liberal,
513 .maxlen = sizeof(unsigned int),
514 .mode = 0644,
515 .proc_handler = &proc_dointvec,
516 },
517 {
518 .ctl_name = NET_NF_CONNTRACK_TCP_MAX_RETRANS,
519 .procname = "nf_conntrack_tcp_max_retrans",
520 .data = &nf_ct_tcp_max_retrans,
521 .maxlen = sizeof(unsigned int),
522 .mode = 0644,
523 .proc_handler = &proc_dointvec,
524 },
525
526 { .ctl_name = 0 }
527 };
528
529 #define NET_NF_CONNTRACK_MAX 2089
530
531 static ctl_table nf_ct_netfilter_table[] = {
532 {
533 .ctl_name = NET_NETFILTER,
534 .procname = "netfilter",
535 .mode = 0555,
536 .child = nf_ct_sysctl_table,
537 },
538 {
539 .ctl_name = NET_NF_CONNTRACK_MAX,
540 .procname = "nf_conntrack_max",
541 .data = &nf_conntrack_max,
542 .maxlen = sizeof(int),
543 .mode = 0644,
544 .proc_handler = &proc_dointvec,
545 },
546 { .ctl_name = 0 }
547 };
548
549 static ctl_table nf_ct_net_table[] = {
550 {
551 .ctl_name = CTL_NET,
552 .procname = "net",
553 .mode = 0555,
554 .child = nf_ct_netfilter_table,
555 },
556 { .ctl_name = 0 }
557 };
558 EXPORT_SYMBOL(nf_ct_log_invalid);
559 #endif /* CONFIG_SYSCTL */
560
561 static int __init nf_conntrack_standalone_init(void)
562 {
563 #ifdef CONFIG_PROC_FS
564 struct proc_dir_entry *proc, *proc_exp, *proc_stat;
565 #endif
566 int ret = 0;
567
568 ret = nf_conntrack_init();
569 if (ret < 0)
570 return ret;
571
572 #ifdef CONFIG_PROC_FS
573 proc = proc_net_fops_create("nf_conntrack", 0440, &ct_file_ops);
574 if (!proc) goto cleanup_init;
575
576 proc_exp = proc_net_fops_create("nf_conntrack_expect", 0440,
577 &exp_file_ops);
578 if (!proc_exp) goto cleanup_proc;
579
580 proc_stat = create_proc_entry("nf_conntrack", S_IRUGO, proc_net_stat);
581 if (!proc_stat)
582 goto cleanup_proc_exp;
583
584 proc_stat->proc_fops = &ct_cpu_seq_fops;
585 proc_stat->owner = THIS_MODULE;
586 #endif
587 #ifdef CONFIG_SYSCTL
588 nf_ct_sysctl_header = register_sysctl_table(nf_ct_net_table, 0);
589 if (nf_ct_sysctl_header == NULL) {
590 printk("nf_conntrack: can't register to sysctl.\n");
591 ret = -ENOMEM;
592 goto cleanup_proc_stat;
593 }
594 #endif
595 return ret;
596
597 #ifdef CONFIG_SYSCTL
598 cleanup_proc_stat:
599 #endif
600 #ifdef CONFIG_PROC_FS
601 remove_proc_entry("nf_conntrack", proc_net_stat);
602 cleanup_proc_exp:
603 proc_net_remove("nf_conntrack_expect");
604 cleanup_proc:
605 proc_net_remove("nf_conntrack");
606 cleanup_init:
607 #endif /* CNFIG_PROC_FS */
608 nf_conntrack_cleanup();
609 return ret;
610 }
611
612 static void __exit nf_conntrack_standalone_fini(void)
613 {
614 #ifdef CONFIG_SYSCTL
615 unregister_sysctl_table(nf_ct_sysctl_header);
616 #endif
617 #ifdef CONFIG_PROC_FS
618 remove_proc_entry("nf_conntrack", proc_net_stat);
619 proc_net_remove("nf_conntrack_expect");
620 proc_net_remove("nf_conntrack");
621 #endif /* CNFIG_PROC_FS */
622 nf_conntrack_cleanup();
623 }
624
625 module_init(nf_conntrack_standalone_init);
626 module_exit(nf_conntrack_standalone_fini);
627
628 /* Some modules need us, but don't depend directly on any symbol.
629 They should call this. */
630 void need_conntrack(void)
631 {
632 }
633
634 #ifdef CONFIG_NF_CONNTRACK_EVENTS
635 EXPORT_SYMBOL_GPL(nf_conntrack_chain);
636 EXPORT_SYMBOL_GPL(nf_conntrack_expect_chain);
637 EXPORT_SYMBOL_GPL(nf_conntrack_register_notifier);
638 EXPORT_SYMBOL_GPL(nf_conntrack_unregister_notifier);
639 EXPORT_SYMBOL_GPL(__nf_ct_event_cache_init);
640 EXPORT_PER_CPU_SYMBOL_GPL(nf_conntrack_ecache);
641 EXPORT_SYMBOL_GPL(nf_ct_deliver_cached_events);
642 #endif
643 EXPORT_SYMBOL(nf_ct_l3proto_try_module_get);
644 EXPORT_SYMBOL(nf_ct_l3proto_module_put);
645 EXPORT_SYMBOL(nf_conntrack_l3proto_register);
646 EXPORT_SYMBOL(nf_conntrack_l3proto_unregister);
647 EXPORT_SYMBOL(nf_conntrack_l4proto_register);
648 EXPORT_SYMBOL(nf_conntrack_l4proto_unregister);
649 EXPORT_SYMBOL(nf_ct_invert_tuplepr);
650 EXPORT_SYMBOL(nf_conntrack_destroyed);
651 EXPORT_SYMBOL(need_conntrack);
652 EXPORT_SYMBOL(nf_conntrack_helper_register);
653 EXPORT_SYMBOL(nf_conntrack_helper_unregister);
654 EXPORT_SYMBOL(nf_ct_iterate_cleanup);
655 EXPORT_SYMBOL(__nf_ct_refresh_acct);
656 EXPORT_SYMBOL(nf_ct_protos);
657 EXPORT_SYMBOL(__nf_ct_l4proto_find);
658 EXPORT_SYMBOL(nf_ct_l4proto_find_get);
659 EXPORT_SYMBOL(nf_ct_l4proto_put);
660 EXPORT_SYMBOL(nf_ct_l3proto_find_get);
661 EXPORT_SYMBOL(nf_ct_l3proto_put);
662 EXPORT_SYMBOL(nf_ct_l3protos);
663 EXPORT_SYMBOL_GPL(nf_conntrack_checksum);
664 EXPORT_SYMBOL(nf_conntrack_expect_alloc);
665 EXPORT_SYMBOL(nf_conntrack_expect_put);
666 EXPORT_SYMBOL(nf_conntrack_expect_related);
667 EXPORT_SYMBOL(nf_conntrack_unexpect_related);
668 EXPORT_SYMBOL(nf_conntrack_tuple_taken);
669 EXPORT_SYMBOL(nf_conntrack_htable_size);
670 EXPORT_SYMBOL(nf_conntrack_lock);
671 EXPORT_SYMBOL(nf_conntrack_hash);
672 EXPORT_SYMBOL(nf_conntrack_untracked);
673 EXPORT_SYMBOL_GPL(nf_conntrack_find_get);
674 #ifdef CONFIG_IP_NF_NAT_NEEDED
675 EXPORT_SYMBOL(nf_conntrack_tcp_update);
676 #endif
677 EXPORT_SYMBOL(__nf_conntrack_confirm);
678 EXPORT_SYMBOL(nf_ct_get_tuple);
679 EXPORT_SYMBOL(nf_ct_invert_tuple);
680 EXPORT_SYMBOL(nf_conntrack_in);
681 EXPORT_SYMBOL(__nf_conntrack_attach);
682 EXPORT_SYMBOL(nf_conntrack_alloc);
683 EXPORT_SYMBOL(nf_conntrack_free);
684 EXPORT_SYMBOL(nf_conntrack_flush);
685 EXPORT_SYMBOL(nf_ct_remove_expectations);
686 EXPORT_SYMBOL(nf_ct_helper_find_get);
687 EXPORT_SYMBOL(nf_ct_helper_put);
688 EXPORT_SYMBOL(__nf_conntrack_helper_find_byname);
689 EXPORT_SYMBOL(__nf_conntrack_find);
690 EXPORT_SYMBOL(nf_ct_unlink_expect);
691 EXPORT_SYMBOL(nf_conntrack_hash_insert);
692 EXPORT_SYMBOL(__nf_conntrack_expect_find);
693 EXPORT_SYMBOL(nf_conntrack_expect_find);
694 EXPORT_SYMBOL(nf_conntrack_expect_list);
695 #if defined(CONFIG_NF_CT_NETLINK) || \
696 defined(CONFIG_NF_CT_NETLINK_MODULE)
697 EXPORT_SYMBOL(nf_ct_port_tuple_to_nfattr);
698 EXPORT_SYMBOL(nf_ct_port_nfattr_to_tuple);
699 #endif
This page took 0.057463 seconds and 5 git commands to generate.