@@ -203,7 +203,6 @@ static const struct tok ptp_msg_type[] = {
203
203
{ 0 , NULL }
204
204
};
205
205
206
-
207
206
#define PTP_TRUE 1
208
207
#define PTP_FALSE !PTP_TRUE
209
208
@@ -236,7 +235,6 @@ static const struct tok ptp_msg_type[] = {
236
235
#define PTP_SECURITY_MASK 0x4000
237
236
#define PTP_FLAGS_UNKNOWN_MASK 0x18C0
238
237
239
-
240
238
static const struct tok ptp_flag_values [] = {
241
239
{ PTP_L161_MASK ,"l1 61" },
242
240
{ PTP_L1_59_MASK ,"l1 59" },
@@ -254,11 +252,6 @@ static const struct tok ptp_flag_values[] = {
254
252
{0 , NULL }
255
253
};
256
254
257
- #define PTP_PRINT_MSG_TYPE (e ) \
258
- { \
259
- ND_PRINT("(%s)", tok2str(ptp_msg_type, "unknown", e)); \
260
- }
261
-
262
255
static const char * p_porigin_ts = "preciseOriginTimeStamp" ;
263
256
static const char * p_origin_ts = "originTimeStamp" ;
264
257
static const char * p_recv_ts = "receiveTimeStamp" ;
@@ -272,8 +265,6 @@ static const char *p_recv_ts = "receiveTimeStamp";
272
265
#define PTP_6BYTES_LEN sizeof(uint32_t)+sizeof(uint16_t)
273
266
#define PTP_UINT64_LEN sizeof(uint64_t)
274
267
275
-
276
-
277
268
static void ptp_print_1 (netdissect_options * ndo );
278
269
static void ptp_print_2 (netdissect_options * ndo , const u_char * bp , u_int len );
279
270
0 commit comments