projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d67a50
)
ipvlan: fix ipv6 outbound device
author
Keefe Liu
<liuqifa@huawei.com>
Thu, 9 Nov 2017 12:09:31 +0000
(20:09 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sat, 11 Nov 2017 10:27:05 +0000
(19:27 +0900)
When process the outbound packet of ipv6, we should assign the master
device to output device other than input device.
Signed-off-by: Keefe Liu <liuqifa@huawei.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/ipvlan/ipvlan_core.c
b/drivers/net/ipvlan/ipvlan_core.c
index 034ae4c57196216fd2d5f928cbada3e8aaaf97e1..f2a7e929316e12e86e680468f44a36612d69f5df 100644
(file)
--- a/
drivers/net/ipvlan/ipvlan_core.c
+++ b/
drivers/net/ipvlan/ipvlan_core.c
@@
-409,7
+409,7
@@
static int ipvlan_process_v6_outbound(struct sk_buff *skb)
struct dst_entry *dst;
int err, ret = NET_XMIT_DROP;
struct flowi6 fl6 = {
- .flowi6_
i
if = dev->ifindex,
+ .flowi6_
o
if = dev->ifindex,
.daddr = ip6h->daddr,
.saddr = ip6h->saddr,
.flowi6_flags = FLOWI_FLAG_ANYSRC,