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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [net/] [rose/] [sysctl_net_rose.c] - Blame information for rev 199

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/* -*- linux-c -*-
2
 * sysctl_net_rose.c: sysctl interface to net ROSE subsystem.
3
 *
4
 * Begun April 1, 1996, Mike Shaver.
5
 * Added /proc/sys/net/rose directory entry (empty =) ). [MS]
6
 */
7
 
8
#include <linux/mm.h>
9
#include <linux/sysctl.h>
10
#include <net/ax25.h>
11
#include <net/rose.h>
12
 
13
static int min_timer[]  = {1 * ROSE_SLOWHZ};
14
static int max_timer[]  = {300 * ROSE_SLOWHZ};
15
static int min_route[]  = {0}, max_route[] = {1};
16
static int min_ftimer[] = {60 * ROSE_SLOWHZ};
17
static int max_ftimer[] = {600 * ROSE_SLOWHZ};
18
static int min_maxvcs[] = {1}, max_maxvcs[] = {254};
19
static int min_window[] = {1}, max_window[] = {7};
20
 
21
static struct ctl_table_header *rose_table_header;
22
 
23
static ctl_table rose_table[] = {
24
        {NET_ROSE_RESTART_REQUEST_TIMEOUT, "restart_request_timeout",
25
         &sysctl_rose_restart_request_timeout, sizeof(int), 0644, NULL,
26
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
27
        {NET_ROSE_CALL_REQUEST_TIMEOUT, "call_request_timeout",
28
         &sysctl_rose_call_request_timeout, sizeof(int), 0644, NULL,
29
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
30
        {NET_ROSE_RESET_REQUEST_TIMEOUT, "reset_request_timeout",
31
         &sysctl_rose_reset_request_timeout, sizeof(int), 0644, NULL,
32
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
33
        {NET_ROSE_CLEAR_REQUEST_TIMEOUT, "clear_request_timeout",
34
         &sysctl_rose_clear_request_timeout, sizeof(int), 0644, NULL,
35
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
36
        {NET_ROSE_ACK_HOLD_BACK_TIMEOUT, "acknowledge_hold_back_timeout",
37
         &sysctl_rose_ack_hold_back_timeout, sizeof(int), 0644, NULL,
38
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
39
        {NET_ROSE_ROUTING_CONTROL, "routing_control",
40
         &sysctl_rose_routing_control, sizeof(int), 0644, NULL,
41
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_route, &max_route},
42
        {NET_ROSE_LINK_FAIL_TIMEOUT, "link_fail_timeout",
43
         &sysctl_rose_link_fail_timeout, sizeof(int), 0644, NULL,
44
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_ftimer, &max_ftimer},
45
        {NET_ROSE_MAX_VCS, "maximum_virtual_circuits",
46
         &sysctl_rose_maximum_vcs, sizeof(int), 0644, NULL,
47
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_maxvcs, &max_maxvcs},
48
        {NET_ROSE_WINDOW_SIZE, "window_size",
49
         &sysctl_rose_window_size, sizeof(int), 0644, NULL,
50
         &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_window, &max_window},
51
        {0}
52
};
53
 
54
static ctl_table rose_dir_table[] = {
55
        {NET_ROSE, "rose", NULL, 0, 0555, rose_table},
56
        {0}
57
};
58
 
59
static ctl_table rose_root_table[] = {
60
        {CTL_NET, "net", NULL, 0, 0555, rose_dir_table},
61
        {0}
62
};
63
 
64
void rose_register_sysctl(void)
65
{
66
        rose_table_header = register_sysctl_table(rose_root_table, 1);
67
}
68
 
69
void rose_unregister_sysctl(void)
70
{
71
        unregister_sysctl_table(rose_table_header);
72
}

powered by: WebSVN 2.1.0

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