]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/raw.c
[NET] NETNS: Omit namespace comparision without CONFIG_NET_NS.
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / raw.c
index 25dc8b38cac3b0f2dab98751b4ded507eeed993d..d965f0a39c84e8562ee13958aea98023e8133e83 100644 (file)
@@ -117,7 +117,7 @@ static struct sock *__raw_v4_lookup(struct net *net, struct sock *sk,
        sk_for_each_from(sk, node) {
                struct inet_sock *inet = inet_sk(sk);
 
-               if (sock_net(sk) == net && inet->num == num             &&
+               if (net_eq(sock_net(sk), net) && inet->num == num       &&
                    !(inet->daddr && inet->daddr != raddr)              &&
                    !(inet->rcv_saddr && inet->rcv_saddr != laddr)      &&
                    !(sk->sk_bound_dev_if && sk->sk_bound_dev_if != dif))