Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106352
b: refs/heads/master
c: bd7b153
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Jul 27, 2008
1 parent 8b433d2 commit 3cad8d5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7e6ced4061da509f737541ca4dbd44d83a6e82f
refs/heads/master: bd7b1533cd6a68c734062aa69394bec7e2b1718e
2 changes: 2 additions & 0 deletions trunk/include/net/ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ extern int sysctl_ip_dynaddr;

extern void ipfrag_init(void);

extern void ip_static_sysctl_init(void);

#ifdef CONFIG_INET
#include <net/dst.h>

Expand Down
4 changes: 4 additions & 0 deletions trunk/net/ipv4/af_inet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1439,6 +1439,10 @@ static int __init inet_init(void)

(void)sock_register(&inet_family_ops);

#ifdef CONFIG_SYSCTL
ip_static_sysctl_init();
#endif

/*
* Add all the base protocols.
*/
Expand Down
7 changes: 7 additions & 0 deletions trunk/net/ipv4/sysctl_net_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,4 +882,11 @@ static __init int sysctl_ipv4_init(void)
return 0;
}

/* set enough of tree skeleton to get rid of ordering problems */
void __init ip_static_sysctl_init(void)
{
static ctl_table table[1];
register_sysctl_paths(net_ipv4_ctl_path, table);
}

__initcall(sysctl_ipv4_init);

0 comments on commit 3cad8d5

Please sign in to comment.