]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/net/netns/ipv6.h
scsi: hisi_sas: Implement handlers of PCIe FLR for v3 hw
[mirror_ubuntu-bionic-kernel.git] / include / net / netns / ipv6.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
b0f159db
DL
2/*
3 * ipv6 in net namespaces
4 */
5
e71e0349
DL
6#include <net/inet_frag.h>
7
b0f159db
DL
8#ifndef __NETNS_IPV6_H__
9#define __NETNS_IPV6_H__
86393e52 10#include <net/dst_ops.h>
b0f159db 11
760f2d01
DL
12struct ctl_table_header;
13
14struct netns_sysctl_ipv6 {
15#ifdef CONFIG_SYSCTL
6dceb036
EB
16 struct ctl_table_header *hdr;
17 struct ctl_table_header *route_hdr;
18 struct ctl_table_header *icmp_hdr;
e4a2d5c2 19 struct ctl_table_header *frags_hdr;
8d068875 20 struct ctl_table_header *xfrm6_hdr;
760f2d01 21#endif
99bc9c4e 22 int bindv6only;
4990509f
DL
23 int flush_delay;
24 int ip6_rt_max_size;
25 int ip6_rt_gc_min_interval;
26 int ip6_rt_gc_timeout;
27 int ip6_rt_gc_interval;
28 int ip6_rt_gc_elasticity;
29 int ip6_rt_mtu_expires;
30 int ip6_rt_min_advmss;
6444f72b 31 int flowlabel_consistency;
cb1ce2ef 32 int auto_flowlabels;
41a76906 33 int icmpv6_time;
ec35b61e 34 int anycast_src_echo_reply;
35a256fe 35 int ip_nonlocal_bind;
e110861f 36 int fwmark_reflect;
1855b7c3
HFS
37 int idgen_retries;
38 int idgen_delay;
82a584b7 39 int flowlabel_state_ranges;
22b6722b 40 int flowlabel_reflect;
47d3d7ac
TH
41 int max_dst_opts_cnt;
42 int max_hbh_opts_cnt;
43 int max_dst_opts_len;
44 int max_hbh_opts_len;
760f2d01
DL
45};
46
b0f159db 47struct netns_ipv6 {
760f2d01 48 struct netns_sysctl_ipv6 sysctl;
e0da5a48
PE
49 struct ipv6_devconf *devconf_all;
50 struct ipv6_devconf *devconf_dflt;
c8a627ed 51 struct inet_peer_base *peers;
ac18e750 52 struct netns_frags frags;
8280aa61
AD
53#ifdef CONFIG_NETFILTER
54 struct xt_table *ip6table_filter;
55 struct xt_table *ip6table_mangle;
56 struct xt_table *ip6table_raw;
e9d3897c 57#ifdef CONFIG_SECURITY
17e6e59f 58 struct xt_table *ip6table_security;
e9d3897c 59#endif
58a317f1 60 struct xt_table *ip6table_nat;
58f09b78 61#endif
8ed67789 62 struct rt6_info *ip6_null_entry;
c572872f 63 struct rt6_statistics *rt6_stats;
417f28bb 64 struct timer_list ip6_fib_timer;
58f09b78
DL
65 struct hlist_head *fib_table_hash;
66 struct fib6_table *fib6_main_tbl;
9a03cd8f 67 struct list_head fib6_walkers;
86393e52 68 struct dst_ops ip6_dst_ops;
9a03cd8f 69 rwlock_t fib6_walker_lock;
3dc94f93 70 spinlock_t fib6_gc_lock;
6891a346
BT
71 unsigned int ip6_rt_gc_expire;
72 unsigned long ip6_rt_last_gc;
58f09b78 73#ifdef CONFIG_IPV6_MULTIPLE_TABLES
feca7d8c 74 bool fib6_has_custom_rules;
8ed67789
DL
75 struct rt6_info *ip6_prohibit_entry;
76 struct rt6_info *ip6_blk_hole_entry;
58f09b78 77 struct fib6_table *fib6_local_tbl;
dcabb819 78 struct fib_rules_ops *fib6_rules_ops;
8280aa61 79#endif
98c6d1b2 80 struct sock **icmp_sk;
1762f7e8 81 struct sock *ndisc_sk;
93ec926b 82 struct sock *tcp_sk;
b8ad0cbc 83 struct sock *igmp_sk;
93a714d6 84 struct sock *mc_autojoin_sk;
bd91b8bf 85#ifdef CONFIG_IPV6_MROUTE
d1db275d 86#ifndef CONFIG_IPV6_MROUTE_MULTIPLE_TABLES
6bd52143 87 struct mr6_table *mrt6;
d1db275d
PM
88#else
89 struct list_head mr6_tables;
90 struct fib_rules_ops *mr6_rules_ops;
91#endif
bd91b8bf 92#endif
63998ac2 93 atomic_t dev_addr_genid;
812918c4 94 atomic_t fib6_sernum;
915d7e5e 95 struct seg6_pernet_data *seg6_data;
16ab6d7d 96 struct fib_notifier_ops *notifier_ops;
a90c9347
ED
97 struct {
98 struct hlist_head head;
99 spinlock_t lock;
100 u32 seq;
101 } ip6addrlbl_table;
b0f159db 102};
c038a767
AW
103
104#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
105struct netns_nf_frag {
106 struct netns_sysctl_ipv6 sysctl;
107 struct netns_frags frags;
108};
109#endif
110
b0f159db 111#endif