~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/net/rose/sysctl_net_rose.c

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* -*- 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 <linux/init.h>
 11 #include <net/ax25.h>
 12 #include <net/rose.h>
 13 
 14 static int min_timer[]  = {1 * HZ};
 15 static int max_timer[]  = {300 * HZ};
 16 static int min_idle[]   = {0 * HZ};
 17 static int max_idle[]   = {65535 * HZ};
 18 static int min_route[]  = {0}, max_route[] = {1};
 19 static int min_ftimer[] = {60 * HZ};
 20 static int max_ftimer[] = {600 * HZ};
 21 static int min_maxvcs[] = {1}, max_maxvcs[] = {254};
 22 static int min_window[] = {1}, max_window[] = {7};
 23 
 24 static struct ctl_table_header *rose_table_header;
 25 
 26 static ctl_table rose_table[] = {
 27         {NET_ROSE_RESTART_REQUEST_TIMEOUT, "restart_request_timeout",
 28          &sysctl_rose_restart_request_timeout, sizeof(int), 0644, NULL,
 29          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
 30         {NET_ROSE_CALL_REQUEST_TIMEOUT, "call_request_timeout",
 31          &sysctl_rose_call_request_timeout, sizeof(int), 0644, NULL,
 32          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
 33         {NET_ROSE_RESET_REQUEST_TIMEOUT, "reset_request_timeout",
 34          &sysctl_rose_reset_request_timeout, sizeof(int), 0644, NULL,
 35          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
 36         {NET_ROSE_CLEAR_REQUEST_TIMEOUT, "clear_request_timeout",
 37          &sysctl_rose_clear_request_timeout, sizeof(int), 0644, NULL,
 38          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
 39         {NET_ROSE_NO_ACTIVITY_TIMEOUT, "no_activity_timeout",
 40          &sysctl_rose_no_activity_timeout, sizeof(int), 0644, NULL,
 41          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_idle, &max_idle},
 42         {NET_ROSE_ACK_HOLD_BACK_TIMEOUT, "acknowledge_hold_back_timeout",
 43          &sysctl_rose_ack_hold_back_timeout, sizeof(int), 0644, NULL,
 44          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_timer, &max_timer},
 45         {NET_ROSE_ROUTING_CONTROL, "routing_control",
 46          &sysctl_rose_routing_control, sizeof(int), 0644, NULL,
 47          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_route, &max_route},
 48         {NET_ROSE_LINK_FAIL_TIMEOUT, "link_fail_timeout",
 49          &sysctl_rose_link_fail_timeout, sizeof(int), 0644, NULL,
 50          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_ftimer, &max_ftimer},
 51         {NET_ROSE_MAX_VCS, "maximum_virtual_circuits",
 52          &sysctl_rose_maximum_vcs, sizeof(int), 0644, NULL,
 53          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_maxvcs, &max_maxvcs},
 54         {NET_ROSE_WINDOW_SIZE, "window_size",
 55          &sysctl_rose_window_size, sizeof(int), 0644, NULL,
 56          &proc_dointvec_minmax, &sysctl_intvec, NULL, &min_window, &max_window},
 57         {0}
 58 };
 59 
 60 static ctl_table rose_dir_table[] = {
 61         {NET_ROSE, "rose", NULL, 0, 0555, rose_table},
 62         {0}
 63 };
 64 
 65 static ctl_table rose_root_table[] = {
 66         {CTL_NET, "net", NULL, 0, 0555, rose_dir_table},
 67         {0}
 68 };
 69 
 70 void __init rose_register_sysctl(void)
 71 {
 72         rose_table_header = register_sysctl_table(rose_root_table, 1);
 73 }
 74 
 75 void rose_unregister_sysctl(void)
 76 {
 77         unregister_sysctl_table(rose_table_header);
 78 }
 79 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.