Browse Source

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
pull/1802/head
Richard Fuchs 2 years ago
parent
commit
fa37be0625
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      kernel-module/xt_RTPENGINE.c

+ 2
- 0
kernel-module/xt_RTPENGINE.c View File

@ -3977,6 +3977,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;
@ -4061,6 +4062,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