MT#55283 set skb->dev

Since skb is a copy of the ingress skb, ->dev still points to the device
the packet was received on. For sending, set it to the outgoing device,
taken from the dst object.

Change-Id: Ia27b4318925dec4396e485a389d818dd46bcac78
(cherry picked from commit fa37be0625)
pull/1887/head
Richard Fuchs 2 years ago
parent b6b4885653
commit e84d017f86

@ -4028,6 +4028,7 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc
if (skb_dst(skb)->error)
goto drop;
skb->dev = skb_dst(skb)->dev;
skb->ip_summed = CHECKSUM_NONE;
@ -4138,6 +4139,7 @@ static int send_proxy_packet6(struct sk_buff *skb, struct re_address *src, struc
}
skb_dst_drop(skb);
skb_dst_set(skb, dst_entry);
skb->dev = skb_dst(skb)->dev;
skb->ip_summed = CHECKSUM_NONE;

Loading…
Cancel
Save