Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90019
b: refs/heads/master
c: 7b4da53
h: refs/heads/master
i:
  90017: cc58155
  90015: 5fdf59f
v: v3
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Mar 4, 2008
1 parent 81863b4 commit cf23c86
Show file tree
Hide file tree
Showing 4 changed files with 5 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: efa2cea0d97a91dbbc067463de702738f7e50748
refs/heads/master: 7b4da53229bb61469bdab321384b9a13406e3485
2 changes: 1 addition & 1 deletion trunk/include/net/ip6_route.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ extern struct rt6_info * rt6_add_dflt_router(struct in6_addr *gwaddr,
struct net_device *dev,
unsigned int pref);

extern void rt6_purge_dflt_routers(void);
extern void rt6_purge_dflt_routers(struct net *net);

extern int rt6_route_rcv(struct net_device *dev,
u8 *opt, int len,
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ static void addrconf_fixup_forwarding(struct ctl_table *table, int *p, int old)
dev_forward_change((struct inet6_dev *)table->extra1);

if (*p)
rt6_purge_dflt_routers();
rt6_purge_dflt_routers(net);
}
#endif

Expand Down
4 changes: 2 additions & 2 deletions trunk/net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -1697,13 +1697,13 @@ struct rt6_info *rt6_add_dflt_router(struct in6_addr *gwaddr,
return rt6_get_dflt_router(gwaddr, dev);
}

void rt6_purge_dflt_routers(void)
void rt6_purge_dflt_routers(struct net *net)
{
struct rt6_info *rt;
struct fib6_table *table;

/* NOTE: Keep consistent with rt6_get_dflt_router */
table = fib6_get_table(&init_net, RT6_TABLE_DFLT);
table = fib6_get_table(net, RT6_TABLE_DFLT);
if (table == NULL)
return;

Expand Down

0 comments on commit cf23c86

Please sign in to comment.