]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/net/netns/ipv4.h
xfrm: make gc_thresh configurable in all namespaces
[mirror_ubuntu-artful-kernel.git] / include / net / netns / ipv4.h
CommitLineData
8afd351c
PE
1/*
2 * ipv4 in net namespaces
3 */
4
5#ifndef __NETNS_IPV4_H__
6#define __NETNS_IPV4_H__
e4e4971c 7
7064d16e 8#include <linux/uidgid.h>
ac18e750
PE
9#include <net/inet_frag.h>
10
51c5d0c4 11struct tcpm_hash_bucket;
752d14dc
PE
12struct ctl_table_header;
13struct ipv4_devconf;
e4e4971c 14struct fib_rules_ops;
e4aef8ae 15struct hlist_head;
f4530fa5 16struct fib_table;
6bd48fcf 17struct sock;
752d14dc 18
8afd351c 19struct netns_ipv4 {
2a75de0c 20#ifdef CONFIG_SYSCTL
752d14dc 21 struct ctl_table_header *forw_hdr;
e4a2d5c2 22 struct ctl_table_header *frags_hdr;
68528f09 23 struct ctl_table_header *ipv4_hdr;
39a23e75 24 struct ctl_table_header *route_hdr;
8d068875 25 struct ctl_table_header *xfrm4_hdr;
2a75de0c 26#endif
752d14dc
PE
27 struct ipv4_devconf *devconf_all;
28 struct ipv4_devconf *devconf_dflt;
e4e4971c
DL
29#ifdef CONFIG_IP_MULTIPLE_TABLES
30 struct fib_rules_ops *rules_ops;
f4530fa5
DM
31 bool fib_has_custom_rules;
32 struct fib_table *fib_local;
33 struct fib_table *fib_main;
34 struct fib_table *fib_default;
35#endif
36#ifdef CONFIG_IP_ROUTE_CLASSID
37 int fib_num_tclassid_users;
e4e4971c 38#endif
e4aef8ae 39 struct hlist_head *fib_table_hash;
6bd48fcf 40 struct sock *fibnl;
ac18e750 41
4a6ad7a1 42 struct sock **icmp_sk;
c8a627ed 43 struct inet_peer_base *peers;
51c5d0c4 44 struct tcpm_hash_bucket *tcp_metrics_hash;
5815d5e7 45 unsigned int tcp_metrics_hash_log;
ac18e750 46 struct netns_frags frags;
9335f047
AD
47#ifdef CONFIG_NETFILTER
48 struct xt_table *iptable_filter;
49 struct xt_table *iptable_mangle;
50 struct xt_table *iptable_raw;
9ea0cb26 51 struct xt_table *arptable_filter;
e9d3897c 52#ifdef CONFIG_SECURITY
560ee653 53 struct xt_table *iptable_security;
e9d3897c 54#endif
e099a173 55 struct xt_table *nat_table;
9335f047 56#endif
a24022e1
PE
57
58 int sysctl_icmp_echo_ignore_all;
59 int sysctl_icmp_echo_ignore_broadcasts;
60 int sysctl_icmp_ignore_bogus_error_responses;
61 int sysctl_icmp_ratelimit;
62 int sysctl_icmp_ratemask;
63 int sysctl_icmp_errors_use_inbound_ifaddr;
9f5e97e5 64
5d134f1c
HFS
65 int sysctl_tcp_ecn;
66
7064d16e 67 kgid_t sysctl_ping_group_range[2];
3dc43e3e 68 long sysctl_tcp_mem[3];
c319b4d7 69
436c3b66 70 atomic_t dev_addr_genid;
70a269e6
BT
71
72#ifdef CONFIG_IP_MROUTE
f0ad0860 73#ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
0c12295a 74 struct mr_table *mrt;
f0ad0860
PM
75#else
76 struct list_head mr_tables;
77 struct fib_rules_ops *mr_rules_ops;
78#endif
70a269e6 79#endif
8afd351c
PE
80};
81#endif