diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-28 20:52:25 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 20:52:25 -0800 |
commit | 3776c8891a2d3c5892fa50ab9e2a3b68f5674be6 (patch) | |
tree | 2af79954a2f3867ce1a55872ad0c2a0348ed1de9 /net/ipv4/devinet.c | |
parent | 1937504dd156573a1883f10a5a167f3f78c6cb4a (diff) | |
download | talos-obmc-linux-3776c8891a2d3c5892fa50ab9e2a3b68f5674be6.tar.gz talos-obmc-linux-3776c8891a2d3c5892fa50ab9e2a3b68f5674be6.zip |
[NETNS]: Enable IPv4 address manipulations inside namespace.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r-- | net/ipv4/devinet.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c index af752fc5d0ab..dfae59bfaa2c 100644 --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -446,9 +446,6 @@ static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg ASSERT_RTNL(); - if (net != &init_net) - return -EINVAL; - err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); if (err < 0) goto errout; @@ -560,9 +557,6 @@ static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg ASSERT_RTNL(); - if (net != &init_net) - return -EINVAL; - ifa = rtm_to_ifaddr(net, nlh); if (IS_ERR(ifa)) return PTR_ERR(ifa); @@ -1170,9 +1164,6 @@ static int inet_dump_ifaddr(struct sk_buff *skb, struct netlink_callback *cb) struct in_ifaddr *ifa; int s_ip_idx, s_idx = cb->args[0]; - if (net != &init_net) - return 0; - s_ip_idx = ip_idx = cb->args[1]; idx = 0; for_each_netdev(net, dev) { |