diff options
author | Keefe Liu <liuqifa@huawei.com> | 2017-11-09 07:09:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-11 05:27:05 -0500 |
commit | ca29fd7cce5a6444d57fb86517589a1a31c759e1 (patch) | |
tree | 6d1253fc9a0ec1075c33a380a5ee4c837f55a978 /drivers/net/ipvlan/ipvlan_core.c | |
parent | 3d67a5075295982fb055be6a5d5c78b0e0be3591 (diff) |
ipvlan: fix ipv6 outbound device
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>
Diffstat (limited to 'drivers/net/ipvlan/ipvlan_core.c')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c index 034ae4c57196..f2a7e929316e 100644 --- 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) | |||
409 | struct dst_entry *dst; | 409 | struct dst_entry *dst; |
410 | int err, ret = NET_XMIT_DROP; | 410 | int err, ret = NET_XMIT_DROP; |
411 | struct flowi6 fl6 = { | 411 | struct flowi6 fl6 = { |
412 | .flowi6_iif = dev->ifindex, | 412 | .flowi6_oif = dev->ifindex, |
413 | .daddr = ip6h->daddr, | 413 | .daddr = ip6h->daddr, |
414 | .saddr = ip6h->saddr, | 414 | .saddr = ip6h->saddr, |
415 | .flowi6_flags = FLOWI_FLAG_ANYSRC, | 415 | .flowi6_flags = FLOWI_FLAG_ANYSRC, |