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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [net/] [sysctl_net.c] - Diff between revs 1275 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 1275 Rev 1765
/* -*- linux-c -*-
/* -*- linux-c -*-
 * sysctl_net.c: sysctl interface to net subsystem.
 * sysctl_net.c: sysctl interface to net subsystem.
 *
 *
 * Begun April 1, 1996, Mike Shaver.
 * Begun April 1, 1996, Mike Shaver.
 * Added /proc/sys/net directories for each protocol family. [MS]
 * Added /proc/sys/net directories for each protocol family. [MS]
 *
 *
 * $Log: not supported by cvs2svn $
 * $Log: not supported by cvs2svn $
 * Revision 1.2  1996/05/08  20:24:40  shaver
 * Revision 1.2  1996/05/08  20:24:40  shaver
 * Added bits for NET_BRIDGE and the NET_IPV4_ARP stuff and
 * Added bits for NET_BRIDGE and the NET_IPV4_ARP stuff and
 * NET_IPV4_IP_FORWARD.
 * NET_IPV4_IP_FORWARD.
 *
 *
 *
 *
 */
 */
 
 
#include <linux/config.h>
#include <linux/config.h>
#include <linux/mm.h>
#include <linux/mm.h>
#include <linux/sysctl.h>
#include <linux/sysctl.h>
 
 
#ifdef CONFIG_INET
#ifdef CONFIG_INET
extern ctl_table ipv4_table[];
extern ctl_table ipv4_table[];
#endif
#endif
 
 
extern ctl_table core_table[];
extern ctl_table core_table[];
 
 
#ifdef CONFIG_NET
#ifdef CONFIG_NET
extern ctl_table ether_table[], e802_table[];
extern ctl_table ether_table[], e802_table[];
#endif
#endif
 
 
#ifdef CONFIG_IPV6
#ifdef CONFIG_IPV6
extern ctl_table ipv6_table[];
extern ctl_table ipv6_table[];
#endif
#endif
 
 
#ifdef CONFIG_TR
#ifdef CONFIG_TR
extern ctl_table tr_table[];
extern ctl_table tr_table[];
#endif
#endif
 
 
ctl_table net_table[] = {
ctl_table net_table[] = {
        {NET_CORE,   "core",      NULL, 0, 0555, core_table},
        {NET_CORE,   "core",      NULL, 0, 0555, core_table},
#ifdef CONFIG_NET
#ifdef CONFIG_NET
        {NET_802,    "802",       NULL, 0, 0555, e802_table},
        {NET_802,    "802",       NULL, 0, 0555, e802_table},
        {NET_ETHER,  "ethernet",  NULL, 0, 0555, ether_table},
        {NET_ETHER,  "ethernet",  NULL, 0, 0555, ether_table},
#endif
#endif
#ifdef CONFIG_INET
#ifdef CONFIG_INET
        {NET_IPV4,   "ipv4",      NULL, 0, 0555, ipv4_table},
        {NET_IPV4,   "ipv4",      NULL, 0, 0555, ipv4_table},
#endif
#endif
#ifdef CONFIG_IPV6
#ifdef CONFIG_IPV6
        {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
        {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
#endif
#endif
#ifdef CONFIG_TR
#ifdef CONFIG_TR
        {NET_TR, "token-ring", NULL, 0, 0555, tr_table},
        {NET_TR, "token-ring", NULL, 0, 0555, tr_table},
#endif
#endif
        {0}
        {0}
};
};
 
 

powered by: WebSVN 2.1.0

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