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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem.
3
 *
4
 * Changes:
5
 * YOSHIFUJI Hideaki @USAGI:    added icmp sysctl table.
6
 */
7
 
8
#include <linux/mm.h>
9
#include <linux/sysctl.h>
10
#include <linux/config.h>
11
#include <linux/in6.h>
12
#include <linux/ipv6.h>
13
#include <net/ndisc.h>
14
#include <net/ipv6.h>
15
#include <net/addrconf.h>
16
 
17
extern ctl_table ipv6_route_table[];
18
extern ctl_table ipv6_icmp_table[];
19
 
20
#ifdef CONFIG_SYSCTL
21
 
22
ctl_table ipv6_table[] = {
23
        {NET_IPV6_ROUTE, "route", NULL, 0, 0555, ipv6_route_table},
24
        {NET_IPV6_ICMP, "icmp", NULL, 0, 0500, ipv6_icmp_table},
25
        {NET_IPV6_BINDV6ONLY, "bindv6only",
26
         &sysctl_ipv6_bindv6only, sizeof(int), 0644, NULL, &proc_dointvec},
27
        {NET_IPV6_MLD_MAX_MSF, "mld_max_msf",
28
         &sysctl_mld_max_msf, sizeof(int), 0644, NULL, &proc_dointvec},
29
        {0}
30
};
31
 
32
#ifdef MODULE
33
static struct ctl_table_header *ipv6_sysctl_header;
34
static struct ctl_table ipv6_root_table[];
35
static struct ctl_table ipv6_net_table[];
36
 
37
 
38
ctl_table ipv6_root_table[] = {
39
        {CTL_NET, "net", NULL, 0, 0555, ipv6_net_table},
40
        {0}
41
};
42
 
43
ctl_table ipv6_net_table[] = {
44
        {NET_IPV6, "ipv6", NULL, 0, 0555, ipv6_table},
45
        {0}
46
};
47
 
48
void ipv6_sysctl_register(void)
49
{
50
        ipv6_sysctl_header = register_sysctl_table(ipv6_root_table, 0);
51
}
52
 
53
void ipv6_sysctl_unregister(void)
54
{
55
        unregister_sysctl_table(ipv6_sysctl_header);
56
}
57
#endif  /* MODULE */
58
 
59
#endif /* CONFIG_SYSCTL */
60
 
61
 
62
 

powered by: WebSVN 2.1.0

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