Control Protocol - Control Protocol - UG1602

Enhanced PTP User Guide (UG1602)

Document_ID
UG1602
Release_Date
2026-10-23
Revision
1.3 English

The client connects to the control server address. The version of the protocol is included in the address. The current version is 1 and the address is:

/run/sfptpd-control-v1.sock

The client only succeeds in connecting to the server if it has write permissions to the server socket and the server socket is created using the umask the server process inherited, therefore normally it is necessary for the client to be run as root.

A command is sent as plain text in a Unix Domain datagram, for example:

<command string>

There is no return channel and it does not matter to what address, if any, the client's socket is bound.

Two example implementations of the client are included, both of which are suitable to invoke from the command line or to incorporate in custom scripts or operations code.