Skip to content

Commit

Permalink
MT#55283 set skb->dev
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rfuchs committed Feb 9, 2024
1 parent 39df781 commit fa37be0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel-module/xt_RTPENGINE.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit fa37be0

Please sign in to comment.