Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111997
b: refs/heads/master
c: 7987687
h: refs/heads/master
i:
  111995: 54fab92
v: v3
  • Loading branch information
KOVACS Krisztian authored and David S. Miller committed Oct 1, 2008
1 parent a8c42a4 commit 62c4194
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 1668e010cbe1a7567c81d4c02d31dde9859e9da1
refs/heads/master: 79876874ce20d37ecdc7f481ebf142466999152f
6 changes: 5 additions & 1 deletion trunk/include/net/route.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <net/dst.h>
#include <net/inetpeer.h>
#include <net/flow.h>
#include <net/sock.h>
#include <net/inet_sock.h>
#include <linux/in_route.h>
#include <linux/rtnetlink.h>
#include <linux/route.h>
Expand Down Expand Up @@ -161,6 +161,10 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst,

int err;
struct net *net = sock_net(sk);

if (inet_sk(sk)->transparent)
fl.flags |= FLOWI_FLAG_ANYSRC;

if (!dst || !src) {
err = __ip_route_output_key(net, rp, &fl);
if (err)
Expand Down

0 comments on commit 62c4194

Please sign in to comment.