@@ -229,11 +229,11 @@ proto_reg_handoff_ccn(void)
229
229
initialized = TRUE;
230
230
}
231
231
if (current_ccn_port != -1 ) {
232
- dissector_delete ("udp.port" , current_ccn_port , ccn_handle );
233
- dissector_delete ("tcp.port" , current_ccn_port , ccn_handle );
232
+ dissector_delete_uint ("udp.port" , current_ccn_port , ccn_handle );
233
+ dissector_delete_uint ("tcp.port" , current_ccn_port , ccn_handle );
234
234
}
235
- dissector_add ("udp.port" , global_ccn_port , ccn_handle );
236
- dissector_add ("tcp.port" , global_ccn_port , ccn_handle );
235
+ dissector_add_uint ("udp.port" , global_ccn_port , ccn_handle );
236
+ dissector_add_uint ("tcp.port" , global_ccn_port , ccn_handle );
237
237
current_ccn_port = global_ccn_port ;
238
238
}
239
239
@@ -511,7 +511,7 @@ dissect_ccn_interest(const unsigned char *ccnb, size_t ccnb_size, tvbuff_t *tvb,
511
511
col_append_str (pinfo -> cinfo , COL_INFO , ">" );
512
512
}
513
513
titem = proto_tree_add_item (tree , hf_ccn_nonce , tvb ,
514
- blob - ccnb , blob_size , FALSE );
514
+ blob - ccnb , blob_size , ENC_NA );
515
515
}
516
516
517
517
return (1 );
@@ -546,7 +546,7 @@ dissect_ccn_contentobject(const unsigned char *ccnb, size_t ccnb_size, tvbuff_t
546
546
547
547
/* Signature */
548
548
l = pco -> offset [CCN_PCO_E_Signature ] - pco -> offset [CCN_PCO_B_Signature ];
549
- titem = proto_tree_add_item (tree , hf_ccn_signature , tvb , pco -> offset [CCN_PCO_B_Signature ], l , FALSE );
549
+ titem = proto_tree_add_item (tree , hf_ccn_signature , tvb , pco -> offset [CCN_PCO_B_Signature ], l , ENC_NA );
550
550
signature_tree = proto_item_add_subtree (titem , ett_signature );
551
551
552
552
/* DigestAlgorithm */
@@ -557,7 +557,7 @@ dissect_ccn_contentobject(const unsigned char *ccnb, size_t ccnb_size, tvbuff_t
557
557
pco -> offset [CCN_PCO_E_DigestAlgorithm ],
558
558
& blob , & blob_size );
559
559
titem = proto_tree_add_item (signature_tree , hf_ccn_signaturedigestalg , tvb ,
560
- blob - ccnb , blob_size , FALSE );
560
+ blob - ccnb , blob_size , ENC_NA );
561
561
}
562
562
/* Witness */
563
563
l = pco -> offset [CCN_PCO_E_Witness ] - pco -> offset [CCN_PCO_B_Witness ];
@@ -665,7 +665,7 @@ dissect_ccn_contentobject(const unsigned char *ccnb, size_t ccnb_size, tvbuff_t
665
665
pco -> offset [CCN_PCO_E_FinalBlockID ],
666
666
& blob , & blob_size );
667
667
668
- titem = proto_tree_add_item (signedinfo_tree , hf_ccn_finalblockid , tvb , blob - ccnb , blob_size , FALSE );
668
+ titem = proto_tree_add_item (signedinfo_tree , hf_ccn_finalblockid , tvb , blob - ccnb , blob_size , ENC_NA );
669
669
}
670
670
/* TODO: KeyLocator */
671
671
l = pco -> offset [CCN_PCO_E_ExtOpt ] - pco -> offset [CCN_PCO_B_ExtOpt ];
@@ -675,7 +675,7 @@ dissect_ccn_contentobject(const unsigned char *ccnb, size_t ccnb_size, tvbuff_t
675
675
pco -> offset [CCN_PCO_E_ExtOpt ],
676
676
& blob , & blob_size );
677
677
678
- titem = proto_tree_add_item (signedinfo_tree , hf_ccn_extopt , tvb , blob - ccnb , blob_size , FALSE );
678
+ titem = proto_tree_add_item (signedinfo_tree , hf_ccn_extopt , tvb , blob - ccnb , blob_size , ENC_NA );
679
679
}
680
680
/* /SignedInfo */
681
681
@@ -687,10 +687,10 @@ dissect_ccn_contentobject(const unsigned char *ccnb, size_t ccnb_size, tvbuff_t
687
687
& blob , & blob_size );
688
688
titem = proto_tree_add_text (tree , tvb ,
689
689
pco -> offset [CCN_PCO_B_Content ], l ,
690
- "Content: %d bytes" , blob_size );
690
+ "Content: %zd bytes" , blob_size );
691
691
if (blob_size > 0 ) {
692
692
content_tree = proto_item_add_subtree (titem , ett_content );
693
- titem = proto_tree_add_item (content_tree , hf_ccn_contentdata , tvb , blob - ccnb , blob_size , FALSE );
693
+ titem = proto_tree_add_item (content_tree , hf_ccn_contentdata , tvb , blob - ccnb , blob_size , ENC_NA );
694
694
}
695
695
696
696
return (ccnb_size );
0 commit comments