static void ns_parse_answers_v0 ( tvbuff_t * tvb , gint * offset , proto_tree * alljoyn_tree , guint8 answers ) {
 while ( answers -- ) {
 proto_item * alljoyn_answers_ti ;
 proto_tree * alljoyn_answers_tree ;
 gint flags ;
 gint count ;
 alljoyn_answers_ti = proto_tree_add_item ( alljoyn_tree , hf_alljoyn_answer , tvb , * offset , 2 , ENC_NA ) ;
 alljoyn_answers_tree = proto_item_add_subtree ( alljoyn_answers_ti , ett_alljoyn_ns_answers ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_g_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_c_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_t_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_u_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_s_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_f_flag , tvb , * offset , 1 , ENC_NA ) ;
 flags = tvb_get_guint8 ( tvb , * offset ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_count , tvb , * offset , 1 , ENC_NA ) ;
 count = tvb_get_guint8 ( tvb , * offset ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;
 ( * offset ) += 2 ;
 if ( flags & ISAT_S ) {
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv6 , tvb , * offset , 16 , ENC_NA ) ;
 ( * offset ) += 16 ;
 }
 if ( flags & ISAT_F ) {
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv4 , tvb , * offset , 4 , ENC_BIG_ENDIAN ) ;
 ( * offset ) += 4 ;
 }
 if ( flags & ISAT_G ) {
 proto_item * alljoyn_string_ti ;
 proto_tree * alljoyn_string_tree ;
 gint guid_size = 0 ;
 guid_size = tvb_get_guint8 ( tvb , * offset ) ;
 alljoyn_string_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_guid_string , tvb , * offset , 1 + guid_size , ENC_NA ) ;
 alljoyn_string_tree = proto_item_add_subtree ( alljoyn_string_ti , ett_alljoyn_ns_guid_string ) ;
 proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_data , tvb , * offset , guid_size , ENC_ASCII | ENC_NA ) ;
 ( * offset ) += guid_size ;
 }
 while ( count -- ) {
 proto_item * alljoyn_entry_ti ;
 proto_tree * alljoyn_entry_tree ;
 proto_item * alljoyn_bus_name_ti ;
 proto_tree * alljoyn_bus_name_tree ;
 gint bus_name_size = tvb_get_guint8 ( tvb , * offset ) ;
 alljoyn_entry_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_entry , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;
 alljoyn_entry_tree = proto_item_add_subtree ( alljoyn_entry_ti , ett_alljoyn_ns_isat_entry ) ;
 alljoyn_bus_name_ti = proto_tree_add_item ( alljoyn_entry_tree , hf_alljoyn_string , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;
 alljoyn_bus_name_tree = proto_item_add_subtree ( alljoyn_bus_name_ti , ett_alljoyn_string ) ;
 proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_data , tvb , * offset , bus_name_size , ENC_ASCII | ENC_NA ) ;
 ( * offset ) += bus_name_size ;
 }
 }
 }
static void ns_parse_answers_v0 ( tvbuff_t * tvb , gint * offset , proto_tree * alljoyn_tree , guint8 answers ) {
 while ( answers -- ) {
 proto_item * alljoyn_answers_ti ;
 proto_tree * alljoyn_answers_tree ;
 gint flags ;
 gint count ;
 alljoyn_answers_ti = proto_tree_add_item ( alljoyn_tree , hf_alljoyn_answer , tvb , * offset , 2 , ENC_NA ) ;
 alljoyn_answers_tree = proto_item_add_subtree ( alljoyn_answers_ti , ett_alljoyn_ns_answers ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_g_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_c_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_t_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_u_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_s_flag , tvb , * offset , 1 , ENC_NA ) ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_f_flag , tvb , * offset , 1 , ENC_NA ) ;
 flags = tvb_get_guint8 ( tvb , * offset ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_count , tvb , * offset , 1 , ENC_NA ) ;
 count = tvb_get_guint8 ( tvb , * offset ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_port , tvb , * offset , 2 , ENC_BIG_ENDIAN ) ;
 ( * offset ) += 2 ;
 if ( flags & ISAT_S ) {
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv6 , tvb , * offset , 16 , ENC_NA ) ;
 ( * offset ) += 16 ;
 }
 if ( flags & ISAT_F ) {
 proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_ns_isat_ipv4 , tvb , * offset , 4 , ENC_BIG_ENDIAN ) ;
 ( * offset ) += 4 ;
 }
 if ( flags & ISAT_G ) {
 proto_item * alljoyn_string_ti ;
 proto_tree * alljoyn_string_tree ;
 gint guid_size = 0 ;
 guid_size = tvb_get_guint8 ( tvb , * offset ) ;
 alljoyn_string_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_guid_string , tvb , * offset , 1 + guid_size , ENC_NA ) ;
 alljoyn_string_tree = proto_item_add_subtree ( alljoyn_string_ti , ett_alljoyn_ns_guid_string ) ;
 proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_string_tree , hf_alljoyn_string_data , tvb , * offset , guid_size , ENC_ASCII | ENC_NA ) ;
 ( * offset ) += guid_size ;
 }
 while ( count -- ) {
 proto_item * alljoyn_entry_ti ;
 proto_tree * alljoyn_entry_tree ;
 proto_item * alljoyn_bus_name_ti ;
 proto_tree * alljoyn_bus_name_tree ;
 gint bus_name_size = tvb_get_guint8 ( tvb , * offset ) ;
 alljoyn_entry_ti = proto_tree_add_item ( alljoyn_answers_tree , hf_alljoyn_isat_entry , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;
 alljoyn_entry_tree = proto_item_add_subtree ( alljoyn_entry_ti , ett_alljoyn_ns_isat_entry ) ;
 alljoyn_bus_name_ti = proto_tree_add_item ( alljoyn_entry_tree , hf_alljoyn_string , tvb , * offset , 1 + bus_name_size , ENC_NA ) ;
 alljoyn_bus_name_tree = proto_item_add_subtree ( alljoyn_bus_name_ti , ett_alljoyn_string ) ;
 proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_size_8bit , tvb , * offset , 1 , ENC_NA ) ;
 ( * offset ) += 1 ;
 proto_tree_add_item ( alljoyn_bus_name_tree , hf_alljoyn_string_data , tvb , * offset , bus_name_size , ENC_ASCII | ENC_NA ) ;
 ( * offset ) += bus_name_size ;
 }
 }
 }