projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NET]: Make the device list and device lookups per namespace.
[deliverable/linux.git]
/
net
/
ipv4
/
route.c
diff --git
a/net/ipv4/route.c
b/net/ipv4/route.c
index efd2a9202d68d6bd1655e9cffbc0eed8ed8fbcf9..396c631166a43e849d5cd8aee0fd0b65d2cd7a82 100644
(file)
--- a/
net/ipv4/route.c
+++ b/
net/ipv4/route.c
@@
-2213,7
+2213,7
@@
static int ip_route_output_slow(struct rtable **rp, const struct flowi *oldflp)
if (oldflp->oif) {
if (oldflp->oif) {
- dev_out = dev_get_by_index(oldflp->oif);
+ dev_out = dev_get_by_index(
&init_net,
oldflp->oif);
err = -ENODEV;
if (dev_out == NULL)
goto out;
err = -ENODEV;
if (dev_out == NULL)
goto out;
@@
-2592,7
+2592,7
@@
static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void
if (iif) {
struct net_device *dev;
if (iif) {
struct net_device *dev;
- dev = __dev_get_by_index(iif);
+ dev = __dev_get_by_index(
&init_net,
iif);
if (dev == NULL) {
err = -ENODEV;
goto errout_free;
if (dev == NULL) {
err = -ENODEV;
goto errout_free;
This page took
0.026169 seconds
and
5
git commands to generate.