linux/net/sctp/sysctl.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* SCTP kernel implementation
 * (C) Copyright IBM Corp. 2002, 2004
 * Copyright (c) 2002 Intel Corp.
 *
 * This file is part of the SCTP kernel implementation
 *
 * Sysctl related interfaces for SCTP.
 *
 * Please send any bug reports or fixes you make to the
 * email address(es):
 *    lksctp developers <[email protected]>
 *
 * Written or modified by:
 *    Mingqin Liu           <[email protected]>
 *    Jon Grimm             <[email protected]>
 *    Ardelle Fan           <[email protected]>
 *    Ryan Layer            <[email protected]>
 *    Sridhar Samudrala     <[email protected]>
 */

#define pr_fmt(fmt)

#include <net/sctp/structs.h>
#include <net/sctp/sctp.h>
#include <linux/sysctl.h>

static int timer_max =; /* ms in one day */
static int sack_timer_min =;
static int sack_timer_max =;
static int addr_scope_max =;
static int rwnd_scale_max =;
static int rto_alpha_min =;
static int rto_beta_min =;
static int rto_alpha_max =;
static int rto_beta_max =;
static int pf_expose_max =;
static int ps_retrans_max =;
static int udp_port_max =;

static unsigned long max_autoclose_min =;
static unsigned long max_autoclose_max =;

static int proc_sctp_do_hmac_alg(const struct ctl_table *ctl, int write,
				 void *buffer, size_t *lenp, loff_t *ppos);
static int proc_sctp_do_rto_min(const struct ctl_table *ctl, int write,
				void *buffer, size_t *lenp, loff_t *ppos);
static int proc_sctp_do_rto_max(const struct ctl_table *ctl, int write, void *buffer,
				size_t *lenp, loff_t *ppos);
static int proc_sctp_do_udp_port(const struct ctl_table *ctl, int write, void *buffer,
				 size_t *lenp, loff_t *ppos);
static int proc_sctp_do_alpha_beta(const struct ctl_table *ctl, int write,
				   void *buffer, size_t *lenp, loff_t *ppos);
static int proc_sctp_do_auth(const struct ctl_table *ctl, int write,
			     void *buffer, size_t *lenp, loff_t *ppos);
static int proc_sctp_do_probe_interval(const struct ctl_table *ctl, int write,
				       void *buffer, size_t *lenp, loff_t *ppos);

static struct ctl_table sctp_table[] =;

/* The following index defines are used in sctp_sysctl_net_register().
 * If you add new items to the sctp_net_table, please ensure that
 * the index values of these defines hold the same meaning indicated by
 * their macro names when they appear in sctp_net_table.
 */
#define SCTP_RTO_MIN_IDX
#define SCTP_RTO_MAX_IDX
#define SCTP_PF_RETRANS_IDX
#define SCTP_PS_RETRANS_IDX

static struct ctl_table sctp_net_table[] =;

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

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

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

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

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

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

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

int sctp_sysctl_net_register(struct net *net)
{}

void sctp_sysctl_net_unregister(struct net *net)
{}

static struct ctl_table_header *sctp_sysctl_header;

/* Sysctl registration.  */
void sctp_sysctl_register(void)
{}

/* Sysctl deregistration.  */
void sctp_sysctl_unregister(void)
{}