hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
....@@ -583,9 +583,9 @@
583583 goto nla_put_failure;
584584 }
585585
586
- if (hooknum <= NF_INET_FORWARD && skb->tstamp) {
586
+ if (hooknum <= NF_INET_FORWARD) {
587587 struct nfulnl_msg_packet_timestamp ts;
588
- struct timespec64 kts = ktime_to_timespec64(skb->tstamp);
588
+ struct timespec64 kts = ktime_to_timespec64(skb->tstamp ?: ktime_get_real());
589589 ts.sec = cpu_to_be64(kts.tv_sec);
590590 ts.usec = cpu_to_be64(kts.tv_nsec / NSEC_PER_USEC);
591591