Hi, There are 2 types of time-stamps RX and TX Both are retrieved in the msghdr of https://man7.org/linux/man-pages/man3/recvmsg.3p.html
The RX time-stamp comes with the same message that contains the received packet. The TX is received with a message on the error queue after the packet is sent in the vendor Ethernet driver. RX time-stamp can be applied to all packets or only PTP (with proper configuration). The TX time-stamp is usually reserved for PTP packets. ptp4l can configure your kermel/vendor Ethernet driver. The mechanizm is identical to all sockets/network layers (raw, ipv4, ipv6) in ptp4l and in the kernel netlink (layer 2), It fills the message header with the time-stamps in the same manner. However the mechanism relies on the vendor Ethernet driver (module) to pass the time-stamp to the net-link on TX time-stamp, and add the time-stamp to the Linux SKB on RX time-stamp. According to your description, I would first look in the vendor Ethernet driver. First run with IPv4 and find the RX and TX time stamps. And then switch to IPv6. But there could also be a simple misconfiguration of your ptp4l or your system. You did not provide enough information to defer. Erez On Fri, 7 Jul 2023 at 20:46, Vladimir Dubrovsky via Linuxptp-devel < linuxptp-devel@lists.sourceforge.net> wrote: > Hello, > > I have a problem with ptp4l working with IPv6 messages. > > We use Linux version 4.19.0+ and ptp4l version 3.1. > > Everything works fine with PTP over IPv4. However when I run PTP over IPv6 > I see that clock can’t converge. I checked messages in WireShark, > everything looks reasonable. I run PTP with “- 6” option for IPv6. > > My feeling is PTP doesn’t read timestamp from IPv6 message properly. > > Do you have any idea what can be a problem or how can I debug the case? > > Thank you. > > > Vladimir Dubrovsky | Lead Firmware Engineer > Phone: 201‑367‑6695 > Ext: 12422 > Email: vdubrov...@crestron.com > Crestron Electronics, Inc. > 22 Link Drive, Rockleigh, NJ 07647 > [image: Crestron] <https://www.crestron.com/> > CONFIDENTIALITY NOTICE: This e-mail message and any attachments may > contain confidential and/or privileged information and is solely for the > use of the intended recipients. Any unauthorized review, use, disclosure, > or distribution is strictly prohibited. If you have received this message > in error, please promptly notify the sender, and destroy all copies of the > message and any attachments. > _______________________________________________ > Linuxptp-devel mailing list > Linuxptp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linuxptp-devel >
_______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel