Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78750
b: refs/heads/master
c: 8cced9e
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jan 28, 2008
1 parent e8b2957 commit 21550e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 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: 226b0b4a51d1cc09928e569b121ca0abe2839169
refs/heads/master: 8cced9eff1d413c28efac9c5ac5a75793c9251cf
16 changes: 0 additions & 16 deletions trunk/net/ipv4/fib_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,9 +572,6 @@ static int inet_rtm_delroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *ar
struct fib_table *tb;
int err;

if (net != &init_net)
return -EINVAL;

err = rtm_to_fib_config(net, skb, nlh, &cfg);
if (err < 0)
goto errout;
Expand All @@ -597,9 +594,6 @@ static int inet_rtm_newroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *ar
struct fib_table *tb;
int err;

if (net != &init_net)
return -EINVAL;

err = rtm_to_fib_config(net, skb, nlh, &cfg);
if (err < 0)
goto errout;
Expand All @@ -625,9 +619,6 @@ static int inet_dump_fib(struct sk_buff *skb, struct netlink_callback *cb)
struct hlist_head *head;
int dumped = 0;

if (net != &init_net)
return 0;

if (nlmsg_len(cb->nlh) >= sizeof(struct rtmsg) &&
((struct rtmsg *) nlmsg_data(cb->nlh))->rtm_flags & RTM_F_CLONED)
return ip_rt_dump(skb, cb);
Expand Down Expand Up @@ -934,9 +925,6 @@ static int fib_netdev_event(struct notifier_block *this, unsigned long event, vo
struct net_device *dev = ptr;
struct in_device *in_dev = __in_dev_get_rtnl(dev);

if (dev->nd_net != &init_net)
return NOTIFY_DONE;

if (event == NETDEV_UNREGISTER) {
fib_disable_ip(dev, 2);
return NOTIFY_DONE;
Expand Down Expand Up @@ -1016,10 +1004,6 @@ static int __net_init fib_net_init(struct net *net)
{
int error;

error = 0;
if (net != &init_net)
goto out;

error = ip_fib_net_init(net);
if (error < 0)
goto out;
Expand Down

0 comments on commit 21550e4

Please sign in to comment.