summaryrefslogtreecommitdiff
path: root/udp.h
diff options
context:
space:
mode:
authorPartha Ghosh <psg@cumulusnetworks.com>2018-12-13 22:28:36 -0800
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-11-22 20:56:21 +0100
commit6f531302736fa22264dce423234deeb4d5a4fed6 (patch)
treeef61f8bfdfee74648eca5b5e5d2a515f411481c9 /udp.h
parent74e6075a69453cb64418969ae16728e3063a9bae (diff)
downloadtcpdump-6f531302736fa22264dce423234deeb4d5a4fed6.tar.gz
The ptp (precision time protocol) with UDP as the transport protocol.
- the print routines for ptp different ptp messages - test completed for sync message, announce message, delay request message, delay response message and follow up message. - integration of the ptp v2 code with the tcpdump code. Signed-off-by: Partha S. Ghosh <psglinux@gmail.com>
Diffstat (limited to 'udp.h')
-rw-r--r--udp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/udp.h b/udp.h
index cef48b2d..0ac63387 100644
--- a/udp.h
+++ b/udp.h
@@ -77,6 +77,12 @@ struct udphdr {
#ifndef SNMPTRAP_PORT
#define SNMPTRAP_PORT 162 /*XXX*/
#endif
+#ifndef PTP_EVENT_PORT
+#define PTP_EVENT_PORT 319 /* IANA */
+#endif
+#ifndef PTP_GENERAL_PORT
+#define PTP_GENERAL_PORT 320 /* IANA */
+#endif
#ifndef CISCO_AUTORP_PORT
#define CISCO_AUTORP_PORT 496 /*XXX*/
#endif