]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/net/arp.h
futex: Split futex_mm_release() for exit/exec
[mirror_ubuntu-bionic-kernel.git] / include / net / arp.h
index dc8cd47f883b8bbb5f1e6875c4d9471920729c36..c8f580a0e6b1f5c0853cda1605336fa8eb90917c 100644 (file)
@@ -18,10 +18,21 @@ static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32
        return val * hash_rnd[0];
 }
 
+#ifdef CONFIG_INET
 static inline struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key)
 {
+       if (dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))
+               key = INADDR_ANY;
+
        return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, arp_hashfn, &key, dev);
 }
+#else
+static inline
+struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key)
+{
+       return NULL;
+}
+#endif
 
 static inline struct neighbour *__ipv4_neigh_lookup(struct net_device *dev, u32 key)
 {