diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-25 20:35:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 20:35:18 -0500 |
commit | 52479b623d3d41df84c499325b6a8c7915413032 (patch) | |
tree | 196f303f296b53dc89a05954d9c03226a9b4158b /net/decnet | |
parent | cdcbca7c1f1946758cfacb69bc1c7eeaccb11e2d (diff) |
netns xfrm: lookup in netns
Pass netns to xfrm_lookup()/__xfrm_lookup(). For that pass netns
to flow_cache_lookup() and resolver callback.
Take it from socket or netdevice. Stub DECnet to init_net.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 768df000523b..eeaa3d819f9c 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1184,7 +1184,7 @@ static int dn_route_output_key(struct dst_entry **pprt, struct flowi *flp, int f | |||
1184 | 1184 | ||
1185 | err = __dn_route_output_key(pprt, flp, flags); | 1185 | err = __dn_route_output_key(pprt, flp, flags); |
1186 | if (err == 0 && flp->proto) { | 1186 | if (err == 0 && flp->proto) { |
1187 | err = xfrm_lookup(pprt, flp, NULL, 0); | 1187 | err = xfrm_lookup(&init_net, pprt, flp, NULL, 0); |
1188 | } | 1188 | } |
1189 | return err; | 1189 | return err; |
1190 | } | 1190 | } |
@@ -1195,8 +1195,8 @@ int dn_route_output_sock(struct dst_entry **pprt, struct flowi *fl, struct sock | |||
1195 | 1195 | ||
1196 | err = __dn_route_output_key(pprt, fl, flags & MSG_TRYHARD); | 1196 | err = __dn_route_output_key(pprt, fl, flags & MSG_TRYHARD); |
1197 | if (err == 0 && fl->proto) { | 1197 | if (err == 0 && fl->proto) { |
1198 | err = xfrm_lookup(pprt, fl, sk, (flags & MSG_DONTWAIT) ? | 1198 | err = xfrm_lookup(&init_net, pprt, fl, sk, |
1199 | 0 : XFRM_LOOKUP_WAIT); | 1199 | (flags & MSG_DONTWAIT) ? 0 : XFRM_LOOKUP_WAIT); |
1200 | } | 1200 | } |
1201 | return err; | 1201 | return err; |
1202 | } | 1202 | } |