Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223770
b: refs/heads/master
c: 9fc3bbb
h: refs/heads/master
v: v3
  • Loading branch information
Joel Sing authored and David S. Miller committed Jan 4, 2011
1 parent c781894 commit d04def0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6f26129ebbb0071016e2526036f42036ccf30e1
refs/heads/master: 9fc3bbb4a752f108cf096d96640f3b548bbbce6c
8 changes: 6 additions & 2 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2649,8 +2649,12 @@ static int ip_route_output_slow(struct net *net, struct rtable **rp,
}

if (res.type == RTN_LOCAL) {
if (!fl.fl4_src)
fl.fl4_src = fl.fl4_dst;
if (!fl.fl4_src) {
if (res.fi->fib_prefsrc)
fl.fl4_src = res.fi->fib_prefsrc;
else
fl.fl4_src = fl.fl4_dst;
}
dev_out = net->loopback_dev;
fl.oif = dev_out->ifindex;
res.fi = NULL;
Expand Down

0 comments on commit d04def0

Please sign in to comment.