]> git.baikalelectronics.ru Git - kernel.git/commit
net: ptp: add a definition for the UDP port for IEEE 1588 general messages
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 26 Nov 2021 17:28:43 +0000 (19:28 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 19:38:20 +0000 (11:38 -0800)
commite082aa93013871da50a155470aaf8372fc2d4409
tree88212b7ad74b0810e8c0ee2257253a2043fb6a5f
parentf4969d77910e66454034d49e49832554e9afb5e7
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>
include/linux/ptp_classify.h