M7350/kernel/include/net/netns/ipv4.h

104 lines
2.2 KiB
C
Raw Normal View History

2024-09-09 08:52:07 +00:00
/*
* ipv4 in net namespaces
*/
#ifndef __NETNS_IPV4_H__
#define __NETNS_IPV4_H__
2024-09-09 08:57:42 +00:00
#include <linux/uidgid.h>
2024-09-09 08:52:07 +00:00
#include <net/inet_frag.h>
2024-09-09 08:57:42 +00:00
struct tcpm_hash_bucket;
2024-09-09 08:52:07 +00:00
struct ctl_table_header;
struct ipv4_devconf;
struct fib_rules_ops;
struct hlist_head;
2024-09-09 08:57:42 +00:00
struct fib_table;
2024-09-09 08:52:07 +00:00
struct sock;
2024-09-09 08:57:42 +00:00
struct local_ports {
seqlock_t lock;
int range[2];
};
struct ping_group_range {
seqlock_t lock;
kgid_t range[2];
};
2024-09-09 08:52:07 +00:00
struct netns_ipv4 {
#ifdef CONFIG_SYSCTL
struct ctl_table_header *forw_hdr;
struct ctl_table_header *frags_hdr;
struct ctl_table_header *ipv4_hdr;
struct ctl_table_header *route_hdr;
2024-09-09 08:57:42 +00:00
struct ctl_table_header *xfrm4_hdr;
2024-09-09 08:52:07 +00:00
#endif
struct ipv4_devconf *devconf_all;
struct ipv4_devconf *devconf_dflt;
#ifdef CONFIG_IP_MULTIPLE_TABLES
struct fib_rules_ops *rules_ops;
2024-09-09 08:57:42 +00:00
bool fib_has_custom_rules;
struct fib_table *fib_local;
struct fib_table *fib_main;
struct fib_table *fib_default;
#endif
#ifdef CONFIG_IP_ROUTE_CLASSID
int fib_num_tclassid_users;
2024-09-09 08:52:07 +00:00
#endif
struct hlist_head *fib_table_hash;
struct sock *fibnl;
struct sock **icmp_sk;
2024-09-09 08:57:42 +00:00
struct inet_peer_base *peers;
struct tcpm_hash_bucket *tcp_metrics_hash;
unsigned int tcp_metrics_hash_log;
struct sock * __percpu *tcp_sk;
2024-09-09 08:52:07 +00:00
struct netns_frags frags;
#ifdef CONFIG_NETFILTER
struct xt_table *iptable_filter;
struct xt_table *iptable_mangle;
struct xt_table *iptable_raw;
struct xt_table *arptable_filter;
#ifdef CONFIG_SECURITY
struct xt_table *iptable_security;
#endif
struct xt_table *nat_table;
#endif
int sysctl_icmp_echo_ignore_all;
int sysctl_icmp_echo_ignore_broadcasts;
int sysctl_icmp_ignore_bogus_error_responses;
int sysctl_icmp_ratelimit;
int sysctl_icmp_ratemask;
int sysctl_icmp_errors_use_inbound_ifaddr;
2024-09-09 08:57:42 +00:00
struct local_ports ip_local_ports;
int sysctl_tcp_ecn;
int sysctl_ip_no_pmtu_disc;
int sysctl_ip_fwd_use_pmtu;
int sysctl_ip_nonlocal_bind;
int sysctl_fwmark_reflect;
int sysctl_tcp_fwmark_accept;
struct ping_group_range ping_group_range;
2024-09-09 08:52:07 +00:00
atomic_t dev_addr_genid;
2024-09-09 08:57:42 +00:00
#ifdef CONFIG_SYSCTL
unsigned long *sysctl_local_reserved_ports;
#endif
2024-09-09 08:52:07 +00:00
#ifdef CONFIG_IP_MROUTE
#ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
struct mr_table *mrt;
#else
struct list_head mr_tables;
struct fib_rules_ops *mr_rules_ops;
#endif
#endif
2024-09-09 08:57:42 +00:00
atomic_t rt_genid;
2024-09-09 08:52:07 +00:00
};
#endif