linux/net/ipv4/sysctl_net_ipv4.c

// SPDX-License-Identifier: GPL-2.0
/*
 * sysctl_net_ipv4.c: sysctl interface to net IPV4 subsystem.
 *
 * Begun April 1, 1996, Mike Shaver.
 * Added /proc/sys/net/ipv4 directory entry (empty =) ). [MS]
 */

#include <linux/sysctl.h>
#include <linux/seqlock.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <net/icmp.h>
#include <net/ip.h>
#include <net/ip_fib.h>
#include <net/tcp.h>
#include <net/udp.h>
#include <net/cipso_ipv4.h>
#include <net/ping.h>
#include <net/protocol.h>
#include <net/netevent.h>

static int tcp_retr1_max =;
static int ip_local_port_range_min[] =;
static int ip_local_port_range_max[] =;
static int tcp_adv_win_scale_min =;
static int tcp_adv_win_scale_max =;
static int tcp_app_win_max =;
static int tcp_min_snd_mss_min =;
static int tcp_min_snd_mss_max =;
static int ip_privileged_port_min;
static int ip_privileged_port_max =;
static int ip_ttl_min =;
static int ip_ttl_max =;
static int tcp_syn_retries_min =;
static int tcp_syn_retries_max =;
static int tcp_syn_linear_timeouts_max =;
static unsigned long ip_ping_group_range_min[] =;
static unsigned long ip_ping_group_range_max[] =;
static u32 u32_max_div_HZ =;
static int one_day_secs =;
static u32 fib_multipath_hash_fields_all_mask __maybe_unused =;
static unsigned int tcp_child_ehash_entries_max =;
static unsigned int udp_child_hash_entries_max =;
static int tcp_plb_max_rounds =;
static int tcp_plb_max_cong_thresh =;

/* obsolete */
static int sysctl_tcp_low_latency __read_mostly;

/* Update system visible IP port range */
static void set_local_port_range(struct net *net, unsigned int low, unsigned int high)
{}

/* Validate changes from /proc interface. */
static int ipv4_local_port_range(const struct ctl_table *table, int write,
				 void *buffer, size_t *lenp, loff_t *ppos)
{}

/* Validate changes from /proc interface. */
static int ipv4_privileged_ports(const struct ctl_table *table, int write,
				void *buffer, size_t *lenp, loff_t *ppos)
{}

static void inet_get_ping_group_range_table(const struct ctl_table *table,
					    kgid_t *low, kgid_t *high)
{}

/* Update system visible IP port range */
static void set_ping_group_range(const struct ctl_table *table,
				 kgid_t low, kgid_t high)
{}

/* Validate changes from /proc interface. */
static int ipv4_ping_group_range(const struct ctl_table *table, int write,
				 void *buffer, size_t *lenp, loff_t *ppos)
{}

static int ipv4_fwd_update_priority(const struct ctl_table *table, int write,
				    void *buffer, size_t *lenp, loff_t *ppos)
{}

static int proc_tcp_congestion_control(const struct ctl_table *ctl, int write,
				       void *buffer, size_t *lenp, loff_t *ppos)
{}

static int proc_tcp_available_congestion_control(const struct ctl_table *ctl,
						 int write, void *buffer,
						 size_t *lenp, loff_t *ppos)
{}

static int proc_allowed_congestion_control(const struct ctl_table *ctl,
					   int write, void *buffer,
					   size_t *lenp, loff_t *ppos)
{}

static int sscanf_key(char *buf, __le32 *key)
{}

static int proc_tcp_fastopen_key(const struct ctl_table *table, int write,
				 void *buffer, size_t *lenp, loff_t *ppos)
{}

static int proc_tfo_blackhole_detect_timeout(const struct ctl_table *table,
					     int write, void *buffer,
					     size_t *lenp, loff_t *ppos)
{}

static int proc_tcp_available_ulp(const struct ctl_table *ctl,
				  int write, void *buffer, size_t *lenp,
				  loff_t *ppos)
{}

static int proc_tcp_ehash_entries(const struct ctl_table *table, int write,
				  void *buffer, size_t *lenp, loff_t *ppos)
{}

static int proc_udp_hash_entries(const struct ctl_table *table, int write,
				 void *buffer, size_t *lenp, loff_t *ppos)
{}

#ifdef CONFIG_IP_ROUTE_MULTIPATH
static int proc_fib_multipath_hash_policy(const struct ctl_table *table, int write,
					  void *buffer, size_t *lenp,
					  loff_t *ppos)
{}

static int proc_fib_multipath_hash_fields(const struct ctl_table *table, int write,
					  void *buffer, size_t *lenp,
					  loff_t *ppos)
{}

static u32 proc_fib_multipath_hash_rand_seed __ro_after_init;

static void proc_fib_multipath_hash_init_rand_seed(void)
{}

static void proc_fib_multipath_hash_set_seed(struct net *net, u32 user_seed)
{}

static int proc_fib_multipath_hash_seed(const struct ctl_table *table, int write,
					void *buffer, size_t *lenp,
					loff_t *ppos)
{}
#else

static void proc_fib_multipath_hash_init_rand_seed(void)
{
}

static void proc_fib_multipath_hash_set_seed(struct net *net, u32 user_seed)
{
}

#endif

static struct ctl_table ipv4_table[] =;

static struct ctl_table ipv4_net_table[] =;

static __net_init int ipv4_sysctl_init_net(struct net *net)
{}

static __net_exit void ipv4_sysctl_exit_net(struct net *net)
{}

static __net_initdata struct pernet_operations ipv4_sysctl_ops =;

static __init int sysctl_ipv4_init(void)
{}

__initcall(sysctl_ipv4_init);