Skip to content

Commit ec15bae

Browse files
vladimirolteankuba-moo
authored andcommitted
net: ptp: add a definition for the UDP port for IEEE 1588 general messages
As opposed to event messages (Sync, PdelayReq etc) which require timestamping, general messages (Announce, FollowUp etc) do not. In PTP they are part of different streams of data. IEEE 1588-2008 Annex D.2 "UDP port numbers" states that the UDP destination port assigned by IANA is 319 for event messages, and 320 for general messages. Yet the kernel seems to be missing the definition for general messages. This patch adds it. Signed-off-by: Vladimir Oltean <[email protected]> Acked-by: Richard Cochran <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 95706be commit ec15bae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/ptp_classify.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#define PTP_MSGTYPE_PDELAY_RESP 0x3
3838

3939
#define PTP_EV_PORT 319
40+
#define PTP_GEN_PORT 320
4041
#define PTP_GEN_BIT 0x08 /* indicates general message, if set in message type */
4142

4243
#define OFF_PTP_SOURCE_UUID 22 /* PTPv1 only */

0 commit comments

Comments
 (0)