HWSTAMP_CTL(8)
β¨ HWSTAMP_CTL β¨
okay so bestie, welcome to the hwstamp_ctl page β it lives in section 8 of the System Manager's Manual, which is the cool section where all the system-admin stuff hangs out π
π NAME π
hwstamp_ctl β literally just here to set the time stamping policy at the driver level. that's it. that's the job. π¦
πΈ SYNOPSIS πΈ
hwstamp_ctl -i interface [ -r rx-filter ] [ -t tx-type ] [ -v ]
π DESCRIPTION π
so, hwstamp_ctl is the little program you use to set and get the hardware time stamping policy at the network driver level, and it does that with the SIOCSHWTSTAMP ioctl(2). iconic behaviour, no cap.
the tx-type and rx-filter values are basically hints to the driver telling it what it's supposed to be doing. and here's the tea: if the requested fine-grained filtering for incoming packets isn't supported, the driver may time stamp more than just the requested types of packets. so likeβ¦ it might over-deliver. that's just how it is. π
if you don't pass <em>neither</em> tx-type nor rx-filter values to the program, it'll use the SIOCGHWTSTAMP ioctl(2) to non-destructively read the current hardware time stamping policy. reading, not wrecking. we love a gentle king. π
heads up: this program is a debugging tool. theptp4l(8)program does not need this program to function β it sets the policy automatically as appropriate. so don't come forptp4l, it's doing fine on its own π«Ά
β¨ OPTIONS β¨
-iinterface β specify the network interface of which the policy should be changed. this is the one you actually need, bestie, don't skip it π-rrx-filter β specify which types of incoming packets should be time stamped.rx-filteris an integer value. yes, a plain old integer. π-ttx-type β enable or disable hardware time stamping for outgoing packets.tx-typeis an integer value. also an integer. we stay consistent. β-hβ display a help message and list of possible values forrx-filterandtx-type. run this one if you're lost, it literally lists the values for you π-vβ prints the software version and exits. short and sweet, main character energy. β¨
π SEE ALSO π
and that's the whole page, bestie!! this lil beauty comes from linuxptp, dated June 2014 β yes, she's been serving since 2014 and she's still booked and busy π go forth and time stamp responsibly π§πΈ
π¦ where this page comes from
- arch rolling: linuxptp 4.4-2 Β· GPL-2.0-or-later
- centos-stream 10: linuxptp 4.4-9.el10 Β· GPL-2.0-or-later
- centos-stream 9: linuxptp 4.4-6.el9 Β· GPL-2.0-or-later
- debian bookworm: linuxptp 3.1.1-4+b2 Β· GPL-2.0-or-later
- debian trixie: linuxptp 4.2-1 Β· GPL-2.0-or-later
- fedora 43: linuxptp 4.4-7.fc43 Β· GPL-2.0-or-later
- fedora 44: linuxptp 4.4-10.fc44 Β· GPL-2.0-or-later
- nixpkgs unstable: linuxptp 4.4
- opensuse-leap 16.0: linuxptp 4.4-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: linuxptp 4.4-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: linuxptp 4.4-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: linuxptp 4.4-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: linuxptp 3.1.1-3 Β· GPL-2.0-or-later
- ubuntu noble: linuxptp 4.0-1ubuntu1 Β· GPL-2.0-or-later
- ubuntu noble: linuxptp 4.0-1ubuntu1.1 Β· GPL-2.0-or-later
- ubuntu questing: linuxptp 4.2-1ubuntu2
- ubuntu resolute: linuxptp 4.4-0ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: linuxptp 4.4-0ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms