diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2008-01-10 06:25:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:27 -0500 |
commit | 6b175b26c1048d331508940ad3516ead1998084f (patch) | |
tree | 810b0a18cee4d87c573274fdfd4a59fc624cfed2 /net/atm/clip.c | |
parent | 8ad4942cd5bdad4143f7aa1d1bd4f7b2526c19c5 (diff) |
[NETNS]: Add netns parameter to inet_(dev_)add_type.
The patch extends the inet_addr_type and inet_dev_addr_type with the
network namespace pointer. That allows to access the different tables
relatively to the network namespace.
The modification of the signature function is reported in all the
callers of the inet_addr_type using the pointer to the well known
init_net.
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/clip.c')
-rw-r--r-- | net/atm/clip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c index 47fbdc0c5f72..df7d218a6827 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
@@ -285,7 +285,7 @@ static int clip_constructor(struct neighbour *neigh) | |||
285 | struct neigh_parms *parms; | 285 | struct neigh_parms *parms; |
286 | 286 | ||
287 | pr_debug("clip_constructor (neigh %p, entry %p)\n", neigh, entry); | 287 | pr_debug("clip_constructor (neigh %p, entry %p)\n", neigh, entry); |
288 | neigh->type = inet_addr_type(entry->ip); | 288 | neigh->type = inet_addr_type(&init_net, entry->ip); |
289 | if (neigh->type != RTN_UNICAST) | 289 | if (neigh->type != RTN_UNICAST) |
290 | return -EINVAL; | 290 | return -EINVAL; |
291 | 291 | ||