diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-11-26 19:28:43 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-26 11:38:20 -0800 |
commit | ec15baec3272bbec576f2ce7ce47765a8e9b7b1c (patch) | |
tree | 88212b7ad74b0810e8c0ee2257253a2043fb6a5f /include/linux/ptp_classify.h | |
parent | 95706be13b9f755d93b5b82bdc782af439f1ec22 (diff) | |
download | linux-ec15baec3272bbec576f2ce7ce47765a8e9b7b1c.tar.gz linux-ec15baec3272bbec576f2ce7ce47765a8e9b7b1c.tar.bz2 linux-ec15baec3272bbec576f2ce7ce47765a8e9b7b1c.zip |
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 <vladimir.oltean@nxp.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/ptp_classify.h')
-rw-r--r-- | include/linux/ptp_classify.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h index ae04968a3a47..9afd34a2d36c 100644 --- a/include/linux/ptp_classify.h +++ b/include/linux/ptp_classify.h @@ -37,6 +37,7 @@ #define PTP_MSGTYPE_PDELAY_RESP 0x3 #define PTP_EV_PORT 319 +#define PTP_GEN_PORT 320 #define PTP_GEN_BIT 0x08 /* indicates general message, if set in message type */ #define OFF_PTP_SOURCE_UUID 22 /* PTPv1 only */ |