@@ -365,47 +365,47 @@ ptp_print_2(netdissect_options *ndo, const u_char *bp, u_int length)
365
365
366
366
foct = GET_U_1 (bp );
367
367
major_sdo_id = (foct & PTP_MAJOR_SDO_ID_MASK ) >> 4 ;
368
- ND_PRINT (", majorSdoId : 0x%x" , major_sdo_id );
368
+ ND_PRINT (", majorSdoId: 0x%x" , major_sdo_id );
369
369
msg_type = foct & PTP_MSG_TYPE_MASK ;
370
- ND_PRINT (", msg type : %s" , tok2str (ptp_msg_type , "Reserved" , msg_type ));
370
+ ND_PRINT (", msg type: %s" , tok2str (ptp_msg_type , "Reserved" , msg_type ));
371
371
372
372
/* msg length */
373
- len -= 2 ; bp += 2 ; msg_len = GET_BE_U_2 (bp ); ND_PRINT (", length : %u" , msg_len );
373
+ len -= 2 ; bp += 2 ; msg_len = GET_BE_U_2 (bp ); ND_PRINT (", length: %u" , msg_len );
374
374
375
375
/* domain */
376
- len -= 2 ; bp += 2 ; domain_no = (GET_BE_U_2 (bp ) & PTP_DOMAIN_MASK ) >> 8 ; ND_PRINT (", domain : %u" , domain_no );
376
+ len -= 2 ; bp += 2 ; domain_no = (GET_BE_U_2 (bp ) & PTP_DOMAIN_MASK ) >> 8 ; ND_PRINT (", domain: %u" , domain_no );
377
377
378
378
/* rsvd 1*/
379
379
rsvd1 = GET_BE_U_2 (bp ) & PTP_RSVD1_MASK ;
380
- ND_PRINT (", reserved1 : %u" , rsvd1 );
380
+ ND_PRINT (", reserved1: %u" , rsvd1 );
381
381
382
382
/* flags */
383
383
len -= 2 ; bp += 2 ; flags = GET_BE_U_2 (bp ); ND_PRINT (", Flags [%s]" , bittok2str (ptp_flag_values , "none" , flags ));
384
384
385
385
/* correction NS (48 bits) */
386
- len -= 2 ; bp += 2 ; ns_corr = GET_BE_U_6 (bp ); ND_PRINT (", NS correction : %" PRIu64 , ns_corr );
386
+ len -= 2 ; bp += 2 ; ns_corr = GET_BE_U_6 (bp ); ND_PRINT (", NS correction: %" PRIu64 , ns_corr );
387
387
388
388
/* correction sub NS (16 bits) */
389
- len -= 6 ; bp += 6 ; sns_corr = GET_BE_U_2 (bp ); ND_PRINT (", sub NS correction : %u" , sns_corr );
389
+ len -= 6 ; bp += 6 ; sns_corr = GET_BE_U_2 (bp ); ND_PRINT (", sub NS correction: %u" , sns_corr );
390
390
391
391
/* Reserved 2 */
392
- len -= 2 ; bp += 2 ; rsvd2 = GET_BE_U_4 (bp ); ND_PRINT (", reserved2 : %u" , rsvd2 );
392
+ len -= 2 ; bp += 2 ; rsvd2 = GET_BE_U_4 (bp ); ND_PRINT (", reserved2: %u" , rsvd2 );
393
393
394
394
/* clock identity */
395
- len -= 4 ; bp += 4 ; clk_id = GET_BE_U_8 (bp ); ND_PRINT (", clock identity : 0x%" PRIx64 , clk_id );
395
+ len -= 4 ; bp += 4 ; clk_id = GET_BE_U_8 (bp ); ND_PRINT (", clock identity: 0x%" PRIx64 , clk_id );
396
396
397
397
/* port identity */
398
- len -= 8 ; bp += 8 ; port_id = GET_BE_U_2 (bp ); ND_PRINT (", port id : %u" , port_id );
398
+ len -= 8 ; bp += 8 ; port_id = GET_BE_U_2 (bp ); ND_PRINT (", port id: %u" , port_id );
399
399
400
400
/* sequence ID */
401
- len -= 2 ; bp += 2 ; seq_id = GET_BE_U_2 (bp ); ND_PRINT (", seq id : %u" , seq_id );
401
+ len -= 2 ; bp += 2 ; seq_id = GET_BE_U_2 (bp ); ND_PRINT (", seq id: %u" , seq_id );
402
402
403
403
/* control */
404
404
len -= 2 ; bp += 2 ; control = GET_U_1 (bp ) ;
405
- ND_PRINT (", control : %u (%s)" , control , tok2str (ptp_control_field , "Reserved" , control ));
405
+ ND_PRINT (", control: %u (%s)" , control , tok2str (ptp_control_field , "Reserved" , control ));
406
406
407
407
/* log message interval */
408
- lm_int = GET_BE_U_2 (bp ) & PTP_LOGMSG_MASK ; ND_PRINT (", log message interval : %u" , lm_int ); len -= 2 ; bp += 2 ;
408
+ lm_int = GET_BE_U_2 (bp ) & PTP_LOGMSG_MASK ; ND_PRINT (", log message interval: %u" , lm_int ); len -= 2 ; bp += 2 ;
409
409
410
410
switch (msg_type ) {
411
411
case M_SYNC :
@@ -490,7 +490,7 @@ ptp_print_timestamp(netdissect_options *ndo, const u_char *bp, u_int *len, const
490
490
uint64_t secs ;
491
491
uint32_t nsecs ;
492
492
493
- ND_PRINT (", %s :" , stype );
493
+ ND_PRINT (", %s:" , stype );
494
494
/* sec time stamp 6 bytes */
495
495
secs = GET_BE_U_6 (bp );
496
496
ND_PRINT (" %" PRIu64 " seconds," , secs );
@@ -512,7 +512,7 @@ ptp_print_timestamp_identity(netdissect_options *ndo,
512
512
uint16_t port_id ;
513
513
uint64_t port_identity ;
514
514
515
- ND_PRINT (", %s :" , ttype );
515
+ ND_PRINT (", %s:" , ttype );
516
516
/* sec time stamp 6 bytes */
517
517
secs = GET_BE_U_6 (bp );
518
518
ND_PRINT (" %" PRIu64 " seconds," , secs );
@@ -527,13 +527,13 @@ ptp_print_timestamp_identity(netdissect_options *ndo,
527
527
528
528
/* port identity*/
529
529
port_identity = GET_BE_U_8 (bp );
530
- ND_PRINT (", port identity : 0x%" PRIx64 , port_identity );
530
+ ND_PRINT (", port identity: 0x%" PRIx64 , port_identity );
531
531
* len -= 8 ;
532
532
bp += 8 ;
533
533
534
534
/* port id */
535
535
port_id = GET_BE_U_2 (bp );
536
- ND_PRINT (", port id : %u" , port_id );
536
+ ND_PRINT (", port id: %u" , port_id );
537
537
* len -= 2 ;
538
538
bp += 2 ;
539
539
}
@@ -546,7 +546,7 @@ ptp_print_announce_msg(netdissect_options *ndo, const u_char *bp, u_int *len)
546
546
uint64_t secs ;
547
547
uint32_t nsecs ;
548
548
549
- ND_PRINT (", %s :" , p_origin_ts );
549
+ ND_PRINT (", %s:" , p_origin_ts );
550
550
/* sec time stamp 6 bytes */
551
551
secs = GET_BE_U_6 (bp );
552
552
ND_PRINT (" %" PRIu64 " seconds" , secs );
@@ -561,56 +561,56 @@ ptp_print_announce_msg(netdissect_options *ndo, const u_char *bp, u_int *len)
561
561
562
562
/* origin cur utc */
563
563
origin_cur_utc = GET_BE_U_2 (bp );
564
- ND_PRINT (", origin cur utc :%u" , origin_cur_utc );
564
+ ND_PRINT (", origin cur utc:%u" , origin_cur_utc );
565
565
* len -= 2 ;
566
566
bp += 2 ;
567
567
568
568
/* rsvd */
569
569
rsvd = GET_U_1 (bp );
570
- ND_PRINT (", rsvd : %u" , rsvd );
570
+ ND_PRINT (", rsvd: %u" , rsvd );
571
571
* len -= 1 ;
572
572
bp += 1 ;
573
573
574
574
/* gm prio */
575
575
gm_prio_1 = GET_U_1 (bp );
576
- ND_PRINT (", gm priority_1 : %u" , gm_prio_1 );
576
+ ND_PRINT (", gm priority_1: %u" , gm_prio_1 );
577
577
* len -= 1 ;
578
578
bp += 1 ;
579
579
580
580
/* GM clock class */
581
581
gm_clk_cls = GET_U_1 (bp );
582
- ND_PRINT (", gm clock class : %u" , gm_clk_cls );
582
+ ND_PRINT (", gm clock class: %u" , gm_clk_cls );
583
583
* len -= 1 ;
584
584
bp += 1 ;
585
585
/* GM clock accuracy */
586
586
gm_clk_acc = GET_U_1 (bp );
587
- ND_PRINT (", gm clock accuracy : %u" , gm_clk_acc );
587
+ ND_PRINT (", gm clock accuracy: %u" , gm_clk_acc );
588
588
* len -= 1 ;
589
589
bp += 1 ;
590
590
/* GM clock variance */
591
591
gm_clk_var = GET_BE_U_2 (bp );
592
- ND_PRINT (", gm clock variance : %u" , gm_clk_var );
592
+ ND_PRINT (", gm clock variance: %u" , gm_clk_var );
593
593
* len -= 2 ;
594
594
bp += 2 ;
595
595
/* GM Prio 2 */
596
596
gm_prio_2 = GET_U_1 (bp );
597
- ND_PRINT (", gm priority_2 : %u" , gm_prio_2 );
597
+ ND_PRINT (", gm priority_2: %u" , gm_prio_2 );
598
598
* len -= 1 ;
599
599
bp += 1 ;
600
600
601
601
/* GM Clock Identity */
602
602
gm_clock_id = GET_BE_U_8 (bp );
603
- ND_PRINT (", gm clock id : 0x%" PRIx64 , gm_clock_id );
603
+ ND_PRINT (", gm clock id: 0x%" PRIx64 , gm_clock_id );
604
604
* len -= 8 ;
605
605
bp += 8 ;
606
606
/* steps removed */
607
607
steps_removed = GET_BE_U_2 (bp );
608
- ND_PRINT (", steps removed : %u" , steps_removed );
608
+ ND_PRINT (", steps removed: %u" , steps_removed );
609
609
* len -= 2 ;
610
610
bp += 2 ;
611
611
/* Time source */
612
612
time_src = GET_U_1 (bp );
613
- ND_PRINT (", time source : 0x%x" , time_src );
613
+ ND_PRINT (", time source: 0x%x" , time_src );
614
614
* len -= 1 ;
615
615
bp += 1 ;
616
616
@@ -623,13 +623,13 @@ ptp_print_port_id(netdissect_options *ndo, const u_char *bp, u_int *len)
623
623
624
624
/* port identity*/
625
625
port_identity = GET_BE_U_8 (bp );
626
- ND_PRINT (", port identity : 0x%" PRIx64 , port_identity );
626
+ ND_PRINT (", port identity: 0x%" PRIx64 , port_identity );
627
627
* len -= 8 ;
628
628
bp += 8 ;
629
629
630
630
/* port id */
631
631
port_id = GET_BE_U_2 (bp );
632
- ND_PRINT (", port id : %u" , port_id );
632
+ ND_PRINT (", port id: %u" , port_id );
633
633
* len -= 2 ;
634
634
bp += 2 ;
635
635
0 commit comments