OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [net/] [x25/] [sysctl_net_x25.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/* -*- linux-c -*-
2
 * sysctl_net_x25.c: sysctl interface to net X.25 subsystem.
3
 *
4
 * Begun April 1, 1996, Mike Shaver.
5
 * Added /proc/sys/net/x25 directory entry (empty =) ). [MS]
6
 */
7
 
8
#include <linux/mm.h>
9
#include <linux/sysctl.h>
10
#include <linux/skbuff.h>
11
#include <linux/socket.h>
12
#include <linux/netdevice.h>
13
#include <linux/init.h>
14
#include <net/x25.h>
15
 
16
static int min_timer[] = {1   * HZ};
17
static int max_timer[] = {300 * HZ};
18
 
19
static struct ctl_table_header *x25_table_header;
20
 
21
static ctl_table x25_table[] = {
22
        {NET_X25_RESTART_REQUEST_TIMEOUT, "restart_request_timeout",
23
         &sysctl_x25_restart_request_timeout, sizeof(int), 0644, NULL,
24
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
25
        {NET_X25_CALL_REQUEST_TIMEOUT, "call_request_timeout",
26
         &sysctl_x25_call_request_timeout, sizeof(int), 0644, NULL,
27
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
28
        {NET_X25_RESET_REQUEST_TIMEOUT, "reset_request_timeout",
29
         &sysctl_x25_reset_request_timeout, sizeof(int), 0644, NULL,
30
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
31
        {NET_X25_CLEAR_REQUEST_TIMEOUT, "clear_request_timeout",
32
         &sysctl_x25_clear_request_timeout, sizeof(int), 0644, NULL,
33
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
34
        {NET_X25_ACK_HOLD_BACK_TIMEOUT, "acknowledgement_hold_back_timeout",
35
         &sysctl_x25_ack_holdback_timeout, sizeof(int), 0644, NULL,
36
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
37
        {0}
38
};
39
 
40
static ctl_table x25_dir_table[] = {
41
        {NET_X25, "x25", NULL, 0, 0555, x25_table},
42
        {0}
43
};
44
 
45
static ctl_table x25_root_table[] = {
46
        {CTL_NET, "net", NULL, 0, 0555, x25_dir_table},
47
        {0}
48
};
49
 
50
void __init x25_register_sysctl(void)
51
{
52
        x25_table_header = register_sysctl_table(x25_root_table, 1);
53
}
54
 
55
void x25_unregister_sysctl(void)
56
{
57
        unregister_sysctl_table(x25_table_header);
58
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.