MT#55283 pull skb_copy past RTP/RTCP parsing

Create the skb copy after parsing the data.

No functional change.

Change-Id: Iaf15601ca1f4064505de5d21df83de449b30932a
pull/2149/head
Richard Fuchs 3 weeks ago
parent d1f583451c
commit 213a356827

@ -7107,13 +7107,6 @@ static int rtpengine46(struct sk_buff *oskb,
goto out_target; // pass to userspace
}
skb = rtpe_skb_cpy(oskb, &rtp, &rtp);
if (!skb)
goto out_target;
rtpe_pull_trim(skb, datalen);
data = skb->data;
// RTP processing
rtp.ok = 0;
rtp.rtcp = 0;
@ -7139,6 +7132,14 @@ static int rtpengine46(struct sk_buff *oskb,
goto out_action; // pass to userspace
}
}
skb = rtpe_skb_cpy(oskb, &rtp, &rtp);
if (!skb)
goto out_target;
rtpe_pull_trim(skb, datalen);
data = skb->data;
if (rtp.ok) {
// RTP ok
rtp_pt_idx = rtp_payload_type(rtp.rtp_header, &g->target, &g->last_pt);

Loading…
Cancel
Save