]> The Tcpdump Group git mirrors - tcpdump/commitdiff
UDP: Sort #defines in header file by port number
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 24 Jul 2023 10:26:42 +0000 (12:26 +0200)
committerfxlb <[email protected]>
Tue, 25 Jul 2023 06:01:25 +0000 (06:01 +0000)
udp.h

diff --git a/udp.h b/udp.h
index 88c581a25170b43250de5a3fd43e1c073abced9b..9694e477697d5d26527e10d13942e135f86fa079 100644 (file)
--- a/udp.h
+++ b/udp.h
@@ -83,6 +83,9 @@ struct udphdr {
 #ifndef PTP_GENERAL_PORT
 #define PTP_GENERAL_PORT               320     /* IANA */
 #endif
+#ifndef HTTPS_PORT
+#define HTTPS_PORT                     443
+#endif
 #ifndef CISCO_AUTORP_PORT
 #define CISCO_AUTORP_PORT              496     /*XXX*/
 #endif
@@ -161,9 +164,6 @@ struct udphdr {
 #ifndef MPLS_LSP_PING_PORT
 #define MPLS_LSP_PING_PORT             3503    /* draft-ietf-mpls-lsp-ping-02.txt */
 #endif
-#ifndef BCM_LI_PORT
-#define BCM_LI_PORT                    49152   /* SDK default */
-#endif
 #ifndef BFD_CONTROL_PORT
 #define BFD_CONTROL_PORT               3784    /* RFC 5881 */
 #endif
@@ -251,6 +251,6 @@ struct udphdr {
 #ifndef SOMEIP_PORT
 #define SOMEIP_PORT                    30490   /* https://www.autosar.org/standards/foundation */
 #endif
-#ifndef HTTPS_PORT
-#define        HTTPS_PORT                      443
+#ifndef BCM_LI_PORT
+#define BCM_LI_PORT                    49152   /* SDK default */
 #endif