|
@@ -3643,7 +3643,8 @@ static void __skb_complete_tx_timestamp(struct sk_buff *skb,
|
|
|
serr->ee.ee_info = tstype;
|
|
|
if (sk->sk_tsflags & SOF_TIMESTAMPING_OPT_ID) {
|
|
|
serr->ee.ee_data = skb_shinfo(skb)->tskey;
|
|
|
- if (sk->sk_protocol == IPPROTO_TCP)
|
|
|
+ if (sk->sk_protocol == IPPROTO_TCP &&
|
|
|
+ sk->sk_type == SOCK_STREAM)
|
|
|
serr->ee.ee_data -= sk->sk_tskey;
|
|
|
}
|
|
|
|