Make it possible to build IP stack as a module
This is not pretty, but it works.
This commit is contained in:
parent
9dc4573cce
commit
77b228276c
26 changed files with 1494 additions and 25 deletions
|
@ -958,7 +958,11 @@ static __net_initdata struct pernet_operations ipv4_sysctl_ops = {
|
|||
.exit = ipv4_sysctl_exit_net,
|
||||
};
|
||||
|
||||
#ifdef CONFIG_INET_MODULE
|
||||
int sysctl_ipv4_init(void)
|
||||
#else
|
||||
static __init int sysctl_ipv4_init(void)
|
||||
#endif
|
||||
{
|
||||
struct ctl_table_header *hdr;
|
||||
struct ctl_table *i;
|
||||
|
@ -984,4 +988,6 @@ static __init int sysctl_ipv4_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifndef CONFIG_INET_MODULE
|
||||
__initcall(sysctl_ipv4_init);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue