Skip to content

Commit ca29fd7

Browse files
Keefe Liudavem330
authored andcommitted
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>
1 parent 3d67a50 commit ca29fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)