]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/atm/clip.c
[NETNS]: Add netns parameter to inet_(dev_)add_type.
[net-next-2.6.git] / net / atm / clip.c
index 47fbdc0c5f727a64560ea71dfd37f20ad95362f3..df7d218a682771a59e839cb6c90b1ddc0d73934f 100644 (file)
@@ -285,7 +285,7 @@ static int clip_constructor(struct neighbour *neigh)
        struct neigh_parms *parms;
 
        pr_debug("clip_constructor (neigh %p, entry %p)\n", neigh, entry);
-       neigh->type = inet_addr_type(entry->ip);
+       neigh->type = inet_addr_type(&init_net, entry->ip);
        if (neigh->type != RTN_UNICAST)
                return -EINVAL;