]> The Tcpdump Group git mirrors - tcpdump/commitdiff
PTP: Remove an unused macro
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 12 Dec 2022 13:31:09 +0000 (14:31 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 12 Dec 2022 14:12:00 +0000 (15:12 +0100)
Moreover:
Remove extra blank lines.

(cherry picked from commit d8b6f680b4ced8026f9637b2b6c4e63d4c722dcf)

[skip ci]

print-ptp.c

index fe39deaf70b204d5ba18b5754cf84c5ed14fb809..570330740bd370b912d0b10b3a9f65dc1db5dccf 100644 (file)
@@ -203,7 +203,6 @@ static const struct tok ptp_msg_type[] = {
     { 0, NULL}
 };
 
-
 #define PTP_TRUE 1
 #define PTP_FALSE !PTP_TRUE
 
@@ -236,7 +235,6 @@ static const struct tok ptp_msg_type[] = {
 #define PTP_SECURITY_MASK           0x4000
 #define PTP_FLAGS_UNKNOWN_MASK      0x18C0
 
-
 static const struct tok ptp_flag_values[] = {
     { PTP_L161_MASK ,"l1 61"},
     { PTP_L1_59_MASK ,"l1 59"},
@@ -254,11 +252,6 @@ static const struct tok ptp_flag_values[] = {
     {0, NULL}
 };
 
-#define PTP_PRINT_MSG_TYPE(e) \
-        { \
-            ND_PRINT("(%s)", tok2str(ptp_msg_type, "unknown", e)); \
-        }
-
 static const char *p_porigin_ts = "preciseOriginTimeStamp";
 static const char *p_origin_ts = "originTimeStamp";
 static const char *p_recv_ts = "receiveTimeStamp";
@@ -272,8 +265,6 @@ static const char *p_recv_ts = "receiveTimeStamp";
 #define PTP_6BYTES_LEN sizeof(uint32_t)+sizeof(uint16_t)
 #define PTP_UINT64_LEN sizeof(uint64_t)
 
-
-
 static void ptp_print_1(netdissect_options *ndo);
 static void ptp_print_2(netdissect_options *ndo, const u_char *bp, u_int len);