|
@@ -348,7 +348,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb)
|
|
|
struct rtable *rt;
|
|
|
int err, ret = NET_XMIT_DROP;
|
|
|
struct flowi4 fl4 = {
|
|
|
- .flowi4_oif = dev_get_iflink(dev),
|
|
|
+ .flowi4_oif = dev->ifindex,
|
|
|
.flowi4_tos = RT_TOS(ip4h->tos),
|
|
|
.flowi4_flags = FLOWI_FLAG_ANYSRC,
|
|
|
.daddr = ip4h->daddr,
|
|
@@ -386,7 +386,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_iif = skb->dev->ifindex,
|
|
|
+ .flowi6_iif = dev->ifindex,
|
|
|
.daddr = ip6h->daddr,
|
|
|
.saddr = ip6h->saddr,
|
|
|
.flowi6_flags = FLOWI_FLAG_ANYSRC,
|