Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109119
b: refs/heads/master
c: 2f4520d
h: refs/heads/master
i:
  109117: 6221340
  109115: 3de1ff8
  109111: 25f81d9
  109103: f1564fc
  109087: f95416e
  109055: d9ee509
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Aug 25, 2008
1 parent 3f2a0b7 commit 40c0a29
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 30c2235cbc477d4629983d440cdc4f496fec9246
refs/heads/master: 2f4520d35d89ca6c5cd129c38e3b11f0283b7d1b
24 changes: 20 additions & 4 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -3116,14 +3116,23 @@ static ctl_table ipv4_route_table[] = {
{ .ctl_name = 0 }
};

static __net_initdata struct ctl_path ipv4_route_path[] = {
static struct ctl_table empty[1];

static struct ctl_table ipv4_skeleton[] =
{
{ .procname = "route", .ctl_name = NET_IPV4_ROUTE,
.child = ipv4_route_table},
{ .procname = "neigh", .ctl_name = NET_IPV4_NEIGH,
.child = empty},
{ }
};

static __net_initdata struct ctl_path ipv4_path[] = {
{ .procname = "net", .ctl_name = CTL_NET, },
{ .procname = "ipv4", .ctl_name = NET_IPV4, },
{ .procname = "route", .ctl_name = NET_IPV4_ROUTE, },
{ },
};


static struct ctl_table ipv4_route_flush_table[] = {
{
.ctl_name = NET_IPV4_ROUTE_FLUSH,
Expand All @@ -3136,6 +3145,13 @@ static struct ctl_table ipv4_route_flush_table[] = {
{ .ctl_name = 0 },
};

static __net_initdata struct ctl_path ipv4_route_path[] = {
{ .procname = "net", .ctl_name = CTL_NET, },
{ .procname = "ipv4", .ctl_name = NET_IPV4, },
{ .procname = "route", .ctl_name = NET_IPV4_ROUTE, },
{ },
};

static __net_init int sysctl_route_net_init(struct net *net)
{
struct ctl_table *tbl;
Expand Down Expand Up @@ -3287,7 +3303,7 @@ int __init ip_rt_init(void)
*/
void __init ip_static_sysctl_init(void)
{
register_sysctl_paths(ipv4_route_path, ipv4_route_table);
register_sysctl_paths(ipv4_path, ipv4_skeleton);
}
#endif

Expand Down

0 comments on commit 40c0a29

Please sign in to comment.