blob: af685f71f4b5bc3a5ed91740caecc252d5c5b312 [file] [log] [blame]
Pavel Emelyanov8afd3512007-12-16 13:29:36 -08001/*
2 * ipv4 in net namespaces
3 */
4
5#ifndef __NETNS_IPV4_H__
6#define __NETNS_IPV4_H__
Denis V. Luneve4e49712008-01-10 03:27:51 -08007
Pavel Emelyanovac18e752008-01-22 06:02:14 -08008#include <net/inet_frag.h>
9
Pavel Emelyanov752d14d2007-12-16 13:31:47 -080010struct ctl_table_header;
11struct ipv4_devconf;
Denis V. Luneve4e49712008-01-10 03:27:51 -080012struct fib_rules_ops;
Denis V. Luneve4aef8a2008-01-10 03:28:24 -080013struct hlist_head;
Denis V. Lunev6bd48fc2008-01-10 03:28:55 -080014struct sock;
Pavel Emelyanov752d14d2007-12-16 13:31:47 -080015
Pavel Emelyanov8afd3512007-12-16 13:29:36 -080016struct netns_ipv4 {
Eric Dumazet2a75de02008-01-05 23:08:49 -080017#ifdef CONFIG_SYSCTL
Pavel Emelyanov752d14d2007-12-16 13:31:47 -080018 struct ctl_table_header *forw_hdr;
Pavel Emelyanove4a2d5c2008-01-22 06:08:36 -080019 struct ctl_table_header *frags_hdr;
Pavel Emelyanov68528f02008-03-26 01:56:24 -070020 struct ctl_table_header *ipv4_hdr;
Eric Dumazet2a75de02008-01-05 23:08:49 -080021#endif
Pavel Emelyanov752d14d2007-12-16 13:31:47 -080022 struct ipv4_devconf *devconf_all;
23 struct ipv4_devconf *devconf_dflt;
Denis V. Luneve4e49712008-01-10 03:27:51 -080024#ifdef CONFIG_IP_MULTIPLE_TABLES
25 struct fib_rules_ops *rules_ops;
26#endif
Denis V. Luneve4aef8a2008-01-10 03:28:24 -080027 struct hlist_head *fib_table_hash;
Denis V. Lunev6bd48fc2008-01-10 03:28:55 -080028 struct sock *fibnl;
Pavel Emelyanovac18e752008-01-22 06:02:14 -080029
Denis V. Lunev4a6ad7a2008-02-29 11:19:58 -080030 struct sock **icmp_sk;
31
Pavel Emelyanovac18e752008-01-22 06:02:14 -080032 struct netns_frags frags;
Alexey Dobriyan9335f042008-01-31 04:03:23 -080033#ifdef CONFIG_NETFILTER
34 struct xt_table *iptable_filter;
35 struct xt_table *iptable_mangle;
36 struct xt_table *iptable_raw;
Alexey Dobriyan9ea0cb22008-01-31 04:05:09 -080037 struct xt_table *arptable_filter;
Alexey Dobriyan9335f042008-01-31 04:03:23 -080038#endif
Pavel Emelyanova24022e2008-03-26 01:55:37 -070039
40 int sysctl_icmp_echo_ignore_all;
41 int sysctl_icmp_echo_ignore_broadcasts;
42 int sysctl_icmp_ignore_bogus_error_responses;
43 int sysctl_icmp_ratelimit;
44 int sysctl_icmp_ratemask;
45 int sysctl_icmp_errors_use_inbound_ifaddr;
Pavel Emelyanov8afd3512007-12-16 13:29:36 -080046};
47#endif