Skip to content

Commit 7015ca8

Browse files
Keefe Liugregkh
authored andcommitted
ipvlan: fix ipv6 outbound device
[ Upstream commit ca29fd7 ] 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> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 854b27e commit 7015ca8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/ipvlan/ipvlan_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ static int ipvlan_process_v6_outbound(struct sk_buff *skb)
409409
struct dst_entry *dst;
410410
int err, ret = NET_XMIT_DROP;
411411
struct flowi6 fl6 = {
412-
.flowi6_iif = dev->ifindex,
412+
.flowi6_oif = dev->ifindex,
413413
.daddr = ip6h->daddr,
414414
.saddr = ip6h->saddr,
415415
.flowi6_flags = FLOWI_FLAG_ANYSRC,

0 commit comments

Comments
 (0)