Rename a couple of to_str functions to have ep_ in the name. This makes it
authoreapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 19 Dec 2013 15:49:09 +0000 (15:49 +0000)
committereapache <eapache@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 19 Dec 2013 15:49:09 +0000 (15:49 +0000)
obvious that the returned string is ephemeral, and opens up the original names
in the API for versions that take a wmem pool (and thus can work in any scope).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@54249 f5534014-38df-0310-8fa8-9805f1628bb7

113 files changed:
asn1/ansi_tcap/ansi_tcap.cnf
asn1/c1222/packet-c1222-template.c
asn1/h248/h248.cnf
asn1/q932/packet-q932-template.c
asn1/ranap/ranap.cnf
asn1/snmp/packet-snmp-template.c
asn1/t38/t38.cnf
epan/addr_resolv.c
epan/address_to_str.c
epan/crypt/airpdcap.c
epan/crypt/airpdcap_debug.h
epan/dissectors/packet-aarp.c
epan/dissectors/packet-alcap.c
epan/dissectors/packet-amqp.c
epan/dissectors/packet-ansi_tcap.c
epan/dissectors/packet-ap1394.c
epan/dissectors/packet-arp.c
epan/dissectors/packet-bacapp.c
epan/dissectors/packet-bacnet.c
epan/dissectors/packet-ber.c
epan/dissectors/packet-bfd.c
epan/dissectors/packet-bgp.c
epan/dissectors/packet-bootp.c
epan/dissectors/packet-bt-dht.c
epan/dissectors/packet-btsdp.c
epan/dissectors/packet-c1222.c
epan/dissectors/packet-canopen.c
epan/dissectors/packet-cdp.c
epan/dissectors/packet-coap.c
epan/dissectors/packet-data.c
epan/dissectors/packet-dcerpc-netlogon.c
epan/dissectors/packet-dcerpc-nt.c
epan/dissectors/packet-dect.c
epan/dissectors/packet-devicenet.c
epan/dissectors/packet-dhcpv6.c
epan/dissectors/packet-dmp.c
epan/dissectors/packet-eap.c
epan/dissectors/packet-edonkey.c
epan/dissectors/packet-etsi_card_app_toolkit.c
epan/dissectors/packet-fcsb3.c
epan/dissectors/packet-fip.c
epan/dissectors/packet-frame.c
epan/dissectors/packet-gsm_a_bssmap.c
epan/dissectors/packet-gsm_a_dtap.c
epan/dissectors/packet-gsm_a_gm.c
epan/dissectors/packet-gsm_abis_om2000.c
epan/dissectors/packet-gsm_sim.c
epan/dissectors/packet-gtp.c
epan/dissectors/packet-gtpv2.c
epan/dissectors/packet-gvcp.c
epan/dissectors/packet-h248.c
epan/dissectors/packet-h248_annex_c.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ieee802a.c
epan/dissectors/packet-igap.c
epan/dissectors/packet-ipp.c
epan/dissectors/packet-ipx.c
epan/dissectors/packet-isakmp.c
epan/dissectors/packet-ismacryp.c
epan/dissectors/packet-isup.c
epan/dissectors/packet-j1939.c
epan/dissectors/packet-lldp.c
epan/dissectors/packet-mip6.c
epan/dissectors/packet-mpls-echo.c
epan/dissectors/packet-ncp2222.inc
epan/dissectors/packet-netflow.c
epan/dissectors/packet-nfs.c
epan/dissectors/packet-nhrp.c
epan/dissectors/packet-noe.c
epan/dissectors/packet-opensafety.c
epan/dissectors/packet-ospf.c
epan/dissectors/packet-pgm.c
epan/dissectors/packet-ppp.c
epan/dissectors/packet-ptpip.c
epan/dissectors/packet-pvfs2.c
epan/dissectors/packet-q2931.c
epan/dissectors/packet-q931.c
epan/dissectors/packet-q932.c
epan/dissectors/packet-q933.c
epan/dissectors/packet-radius.c
epan/dissectors/packet-ranap.c
epan/dissectors/packet-rip.c
epan/dissectors/packet-rmt-lct.c
epan/dissectors/packet-rsvp.c
epan/dissectors/packet-rtmpt.c
epan/dissectors/packet-sigcomp.c
epan/dissectors/packet-simulcrypt.c
epan/dissectors/packet-smb-pipe.c
epan/dissectors/packet-smpp.c
epan/dissectors/packet-snmp.c
epan/dissectors/packet-socketcan.c
epan/dissectors/packet-ssl-utils.c
epan/dissectors/packet-t38.c
epan/dissectors/packet-vuze-dht.c
epan/dissectors/packet-wccp.c
epan/dissectors/packet-wtls.c
epan/dissectors/packet-yami.c
epan/dissectors/packet-zbee-zcl-general.c
epan/dissectors/packet-zbee-zcl-ha.c
epan/dissectors/packet-zbee-zcl.c
epan/dvb_chartbl.c
epan/oids.c
epan/proto.c
epan/sigcomp-udvm.c
epan/sigcomp_state_hdlr.c
epan/to_str.c
epan/to_str.h
epan/tvbuff.c
epan/tvbuff.h
epan/wslua/wslua_tvb.c
plugins/wimaxasncp/packet-wimaxasncp.c
ui/gtk/mcast_stream.c
ui/qt/uat_dialog.cpp

index a013a6e6efc6cd264168689b3fbe40d81c104167..5d9591a1333005eef814c05bdf369563b647bdc0 100644 (file)
@@ -166,9 +166,9 @@ if(next_tvb) {
                 * in the 8 octets case.
                 */
                if (len > 4){
-                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 4,len-4);
+                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_ep_str(next_tvb, 4,len-4);
                }else{
-                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 0,len);
+                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_ep_str(next_tvb, 0,len);
                }
        }
        switch(len) {
index e395a4816a5a910c39d2686723788f44d0b3b26c..38b6695738db04757398ce84c293b80474c7feac 100644 (file)
@@ -450,7 +450,7 @@ parse_c1222_detailed(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int cm
         proto_tree_add_uint(tree, hf_c1222_auth_len, tvb, *offset, 1, auth_len);
         *offset += 1;
         if (*length >= auth_len) {
-          auth_req = tvb_bytes_to_str(tvb, *offset, auth_len);
+          auth_req = tvb_bytes_to_ep_str(tvb, *offset, auth_len);
           proto_tree_add_item(tree, hf_c1222_auth_data, tvb, *offset, auth_len, ENC_NA);
           *offset += auth_len;
           *length -= auth_len + 1;
index 3f068f39e34313c0cd898efdddfe6733a893118c..e445a30c9581125cc6108999353b9cdfcaa617e7 100644 (file)
@@ -340,7 +340,7 @@ AuditReplyV1/auditResult    audit_result
 
                if (curr_info.term->len) {
                        curr_info.term->buffer = (guint8 *)tvb_memdup(wmem_packet_scope(),new_tvb,0,curr_info.term->len);
-                       curr_info.term->str = bytes_to_str(curr_info.term->buffer,curr_info.term->len);
+                       curr_info.term->str = bytes_to_ep_str(curr_info.term->buffer,curr_info.term->len);
                }
 
                curr_info.term = gcp_cmd_add_term(curr_info.msg, curr_info.trx, curr_info.cmd, curr_info.term, wild_term, keep_persistent_data);
@@ -395,7 +395,7 @@ AuditReplyV1/auditResult    audit_result
                                /* not ascii or NULL character so do string as hex string */
                                proto_tree_add_text(tree, tvb, offset, len,"%s: 0x%s", 
                                        (proto_registrar_get_nth(hf_index))->name,
-                                       tvb_bytes_to_str(tvb, 0, len));
+                                       tvb_bytes_to_ep_str(tvb, 0, len));
                                return len;
                        };
                };
index 51559f4817f636ed5934e412247e20fd99a7f18f..b1a8e23b90a809c65e5f8b505850bfcf1da0ade9 100644 (file)
@@ -232,7 +232,7 @@ dissect_q932_ni_ie(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree
   proto_tree_add_uint(tree, hf_q932_nd, tvb, offset - (length - remain), length - remain, value);
 
   if (remain > 0) {
-    proto_tree_add_text(tree, tvb, offset - remain, remain, "ASN.1 Encoded Data Structure(NOT IMPLEMENTED): %s", tvb_bytes_to_str(tvb, offset - remain, remain));
+    proto_tree_add_text(tree, tvb, offset - remain, remain, "ASN.1 Encoded Data Structure(NOT IMPLEMENTED): %s", tvb_bytes_to_ep_str(tvb, offset - remain, remain));
   }
 }
 
index 33e3900a771b19979e16cc96dc51281f831ff05c..337e89bb9685668cb094e67db338d2416f330c0c 100644 (file)
@@ -204,7 +204,7 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound")
                guint8* bytes = (guint8 *)tvb_memdup(wmem_packet_scope(),imsi_tvb,0,len);
 
                actx->pinfo->sccp_info->data.co.assoc->calling_party =
-                       wmem_strdup_printf(wmem_file_scope(), "IMSI: %%s", bytes_to_str(bytes, len) );
+                       wmem_strdup_printf(wmem_file_scope(), "IMSI: %%s", bytes_to_ep_str(bytes, len) );
        }
        digit_str = unpack_digits(imsi_tvb, 0);
        proto_tree_add_string(tree, hf_ranap_imsi_digits, imsi_tvb, 0, -1, digit_str);
index a07157dfe6ff5a0adc1e89c170822f3d969d7f22..2f09a95e04f1b377e7ede5ae7b8ead2d41c42c6b 100644 (file)
@@ -1157,7 +1157,7 @@ dissect_snmp_engineid(proto_tree *tree, tvbuff_t *tvb, int offset, int len)
       /* 12-byte AgentID w/ 8-byte trailer */
       if (len_remain==8) {
        proto_tree_add_text(tree, tvb, offset, 8, "AgentID Trailer: 0x%s",
-                           tvb_bytes_to_str(tvb, offset, 8));
+                           tvb_bytes_to_ep_str(tvb, offset, 8));
        offset+=8;
        len_remain-=8;
       } else {
index 67585a1697ebc9837fbf5a873e8cbd8c7849227e..f1322085736f84569751681df9847f0c93b69cd9 100644 (file)
@@ -162,11 +162,11 @@ VAL_PTR=&Data_Field_field_type_value
     if (primary_part){
         if(value_len < 8){
             col_append_fstr(actx->pinfo->cinfo, COL_INFO, "[%s]",
-               tvb_bytes_to_str(value_tvb,0,value_len));
+               tvb_bytes_to_ep_str(value_tvb,0,value_len));
         }
         else {
             col_append_fstr(actx->pinfo->cinfo, COL_INFO, "[%s...]",
-               tvb_bytes_to_str(value_tvb,0,7));
+               tvb_bytes_to_ep_str(value_tvb,0,7));
         }
     }
 
index 98b969c7f29fc139c3b69c0ed2677cf8d20d142c..3e594cb25996037b009d88bc559c09508e231492 100644 (file)
@@ -1700,7 +1700,7 @@ eth_hash_new_entry(const guint8 *addr, const gboolean resolve)
     tp = g_new(hashether_t, 1);
     memcpy(tp->addr, addr, sizeof(tp->addr));
     tp->status = HASHETHER_STATUS_UNRESOLVED;
-    g_strlcpy(tp->hexaddr, bytestring_to_str(addr, sizeof(tp->addr), ':'), sizeof(tp->hexaddr));
+    g_strlcpy(tp->hexaddr, bytestring_to_ep_str(addr, sizeof(tp->addr), ':'), sizeof(tp->hexaddr));
     tp->resolved_name[0] = '\0';
 
     if (resolve)
index 1ebd0ace4ca575c8e342979e0c76228c180dc6d8..78aee642e5075b8e549e40351941d332d1592c19 100644 (file)
@@ -81,13 +81,13 @@ remove this one later when every call has been converted to ep_address_to_str()
 const gchar *
 ether_to_str(const guint8 *ad)
 {
-    return bytestring_to_str(ad, 6, ':');
+    return bytestring_to_ep_str(ad, 6, ':');
 }
 
 const gchar *
 tvb_ether_to_str(tvbuff_t *tvb, const gint offset)
 {
-    return bytestring_to_str(tvb_get_ptr(tvb, offset, 6), 6, ':');
+    return bytestring_to_ep_str(tvb_get_ptr(tvb, offset, 6), 6, ':');
 }
 
 /*
@@ -267,7 +267,7 @@ ipx_addr_to_str(const guint32 net, const guint8 *ad)
     }
     else {
         buf = ep_strdup_printf("%s.%s", get_ipxnet_name(net),
-            bytestring_to_str(ad, 6, '\0'));
+            bytestring_to_ep_str(ad, 6, '\0'));
     }
     return buf;
 }
@@ -400,13 +400,13 @@ remove this one later when every call has been converted to ep_address_to_str()
 const gchar *
 fc_to_str(const guint8 *ad)
 {
-    return bytestring_to_str (ad, 3, '.');
+    return bytestring_to_ep_str (ad, 3, '.');
 }
 
 const gchar *
 tvb_fc_to_str(tvbuff_t *tvb, const gint offset)
 {
-    return bytestring_to_str (tvb_get_ptr(tvb, offset, 3), 3, '.');
+    return bytestring_to_ep_str (tvb_get_ptr(tvb, offset, 3), 3, '.');
 }
 
 /* FC Network Header Network Address Authority Identifiers */
@@ -475,7 +475,7 @@ remove this one later when every call has been converted to address_to_str()
 const gchar *
 ax25_to_str(const guint8 *ad)
 {
-    return bytestring_to_str(ad, 7, ':');
+    return bytestring_to_ep_str(ad, 7, ':');
 }
 
 /* XXX FIXME
index 8bc488af86577cbd45f34019ab6bfd6370aeb334..92f9bb7fd15cef5fc8d00dd71f7298b286c1d5da 100644 (file)
@@ -1844,7 +1844,7 @@ parse_key_string(gchar* input_string, guint8 key_type)
            dk->type = AIRPDCAP_KEY_TYPE_WEP;
            /* XXX - The current key handling code in the GUI requires
             * no separators and lower case */
-           dk->key  = g_string_new(bytes_to_str(key_ba->data, key_ba->len));
+           dk->key  = g_string_new(bytes_to_ep_str(key_ba->data, key_ba->len));
            g_string_ascii_down(dk->key);
            dk->bits = key_ba->len * 8;
            dk->ssid = NULL;
index 323d564fb97dba222132329d039753e14844a19d..c0d3640d5899d23f564e9a34cb0cbab75e81ac83 100644 (file)
@@ -89,7 +89,7 @@ void print_debug_line(const CHAR *function, const CHAR *msg, const INT level);
 #endif
 #endif
 
-#define DEBUG_DUMP(x,y,z) g_warning("%s: %s", x, bytes_to_str(y, (z)))
+#define DEBUG_DUMP(x,y,z) g_warning("%s: %s", x, bytes_to_ep_str(y, (z)))
 
 #else  /* !defined _DEBUG      */
 
index 5ed3b09d211d83c65a525b803d32f5925efb6e19..48b7f1836a8930d088511ee4817b463b7cf524a7 100644 (file)
@@ -124,7 +124,7 @@ tvb_aarphrdaddr_to_str(tvbuff_t *tvb, gint offset, int ad_len, guint16 type)
        of address). */
     return tvb_ether_to_str(tvb, offset);
   }
-  return tvb_bytes_to_str(tvb, offset, ad_len);
+  return tvb_bytes_to_ep_str(tvb, offset, ad_len);
 }
 
 static gchar *
@@ -134,7 +134,7 @@ tvb_aarpproaddr_to_str(tvbuff_t *tvb, gint offset, int ad_len, guint16 type)
     /* Appletalk address.  */
     return tvb_atalkid_to_str(tvb, offset);
   }
-  return tvb_bytes_to_str(tvb, offset, ad_len);
+  return tvb_bytes_to_ep_str(tvb, offset, ad_len);
 }
 
 /* Offsets of fields within an AARP packet. */
index 66b88733014a25a81fe869e345ed5ac7acfc6889..4f634db1957fd463f1ee1d730c2b82b05dc30ae3 100644 (file)
@@ -590,7 +590,7 @@ static const gchar* dissect_fields_dnsea(packet_info* pinfo _U_, tvbuff_t *tvb,
         return NULL;
     }
 
-    msg_info->dest_nsap = tvb_bytes_to_str(tvb,offset,20);
+    msg_info->dest_nsap = tvb_bytes_to_ep_str(tvb,offset,20);
 
     proto_tree_add_item(tree, hf_alcap_dnsea, tvb, offset, 20, ENC_NA);
     dissect_nsap(tvb, offset,20, tree);
@@ -610,7 +610,7 @@ static const gchar* dissect_fields_onsea(packet_info* pinfo _U_, tvbuff_t *tvb,
         return NULL;
     }
 
-    msg_info->orig_nsap = tvb_bytes_to_str(tvb,offset,20);
+    msg_info->orig_nsap = tvb_bytes_to_ep_str(tvb,offset,20);
 
     proto_tree_add_item(tree, hf_alcap_onsea, tvb, offset, 20, ENC_NA);
     dissect_nsap(tvb, offset,20, tree);
index 409f602f9d44a96dc27aa3e81c8fd296bf95f0d7..05db6f92104cc06e6fdba8d873cf9256cb15a8dd 100644 (file)
@@ -8527,7 +8527,7 @@ format_amqp_0_10_bin(tvbuff_t *tvb,
                      guint offset, guint bound _U_, guint length,
                      const char **value)
 {
-    *value = tvb_bytes_to_str(tvb, offset, length);
+    *value = tvb_bytes_to_ep_str(tvb, offset, length);
     return length;
 }
 
@@ -8612,7 +8612,7 @@ format_amqp_0_10_vbin(tvbuff_t *tvb,
         return length;
     }
     AMQP_INCREMENT(offset, length, bound);
-    *value = tvb_bytes_to_str(tvb, offset, bin_length);
+    *value = tvb_bytes_to_ep_str(tvb, offset, bin_length);
     AMQP_INCREMENT(offset, bin_length, bound);
     return (bin_length + length);
 }
index 43de2a7b87de07f21e1f6ec46d659ff90995effd..efe18a3093a507db0f9dd9772f250efed949752c 100644 (file)
@@ -619,9 +619,9 @@ if(next_tvb) {
                 * in the 8 octets case.
                 */
                if (len > 4){
-                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 4,len-4);
+                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_ep_str(next_tvb, 4,len-4);
                }else{
-                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_str(next_tvb, 0,len);
+                       ansi_tcap_private.TransactionID_str = tvb_bytes_to_ep_str(next_tvb, 0,len);
                }
        }
        switch(len) {
index 67af76528d645769bf9b8348b41b5ba0dd59613f..4b2949457d22a892c8331ea9b9d13033daa892ee 100644 (file)
@@ -87,7 +87,7 @@ dissect_ap1394(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
   if (tree) {
     ti = proto_tree_add_protocol_format(tree, proto_ap1394, tvb, 0, 18,
                "Apple IP-over-IEEE 1394, Src: %s, Dst: %s",
-               bytes_to_str(src_addr, 8), bytes_to_str(dst_addr, 8));
+               bytes_to_ep_str(src_addr, 8), bytes_to_ep_str(dst_addr, 8));
     fh_tree = proto_item_add_subtree(ti, ett_ap1394);
     proto_tree_add_bytes(fh_tree, hf_ap1394_dst, tvb, 0, 8, dst_addr);
     proto_tree_add_bytes(fh_tree, hf_ap1394_src, tvb, 8, 8, src_addr);
index 0bab08f90f63929258ef7da26f4a141bf92ae4d2..0e0fa007b66ea74e25f45a914f05b9044c36cd65 100644 (file)
@@ -366,7 +366,7 @@ tvb_arphrdaddr_to_str(tvbuff_t *tvb, gint offset, int ad_len, guint16 type)
        address). */
     return tvb_ether_to_str(tvb, offset);
   }
-  return tvb_bytes_to_str(tvb, offset, ad_len);
+  return tvb_bytes_to_ep_str(tvb, offset, ad_len);
 }
 
 static const gchar *
@@ -383,7 +383,7 @@ arpproaddr_to_str(const guint8 *ad, int ad_len, guint16 type)
     return get_ax25_name(ad);
     /*return ax25_to_str(ad);*/
   }
-  return bytes_to_str(ad, ad_len);
+  return bytes_to_ep_str(ad, ad_len);
 }
 
 #define MAX_E164_STR_LEN                20
@@ -417,7 +417,7 @@ atmarpnum_to_str(const guint8 *ad, int ad_tl)
      *
      * XXX - break down into subcomponents.
      */
-    return bytes_to_str(ad, ad_len);
+    return bytes_to_ep_str(ad, ad_len);
   }
 }
 
@@ -438,7 +438,7 @@ atmarpsubaddr_to_str(const guint8 *ad, int ad_tl)
    *
    * XXX - break down into subcomponents?
    */
-  return bytes_to_str(ad, ad_len);
+  return bytes_to_ep_str(ad, ad_len);
 }
 
 const value_string arp_hrd_vals[] = {
@@ -543,10 +543,10 @@ dissect_atm_nsap(tvbuff_t *tvb, int offset, int len, proto_tree *tree)
                           tvb_get_ntohs(tvb, offset + 1));
       proto_tree_add_text(tree, tvb, offset + 3, 10,
                           "High Order DSP: %s",
-                          tvb_bytes_to_str(tvb, offset + 3, 10));
+                          tvb_bytes_to_ep_str(tvb, offset + 3, 10));
       proto_tree_add_text(tree, tvb, offset + 13, 6,
                           "End System Identifier: %s",
-                          tvb_bytes_to_str(tvb, offset + 13, 6));
+                          tvb_bytes_to_ep_str(tvb, offset + 13, 6));
       proto_tree_add_text(tree, tvb, offset + 19, 1,
                           "Selector: 0x%02X", tvb_get_guint8(tvb, offset + 19));
       break;
@@ -559,10 +559,10 @@ dissect_atm_nsap(tvbuff_t *tvb, int offset, int len, proto_tree *tree)
                           tvb_get_ntohs(tvb, offset + 1));
       proto_tree_add_text(tree, tvb, offset + 3, 10,
                           "High Order DSP: %s",
-                          tvb_bytes_to_str(tvb, offset + 3, 10));
+                          tvb_bytes_to_ep_str(tvb, offset + 3, 10));
       proto_tree_add_text(tree, tvb, offset + 13, 6,
                           "End System Identifier: %s",
-                          tvb_bytes_to_str(tvb, offset + 13, 6));
+                          tvb_bytes_to_ep_str(tvb, offset + 13, 6));
       proto_tree_add_text(tree, tvb, offset + 19, 1,
                           "Selector: 0x%02X", tvb_get_guint8(tvb, offset + 19));
       break;
@@ -572,13 +572,13 @@ dissect_atm_nsap(tvbuff_t *tvb, int offset, int len, proto_tree *tree)
       proto_tree_add_text(tree, tvb, offset + 0, 9,
                           "E.164 ISDN%s: %s",
                           (afi == 0xC3) ? " (group)" : "",
-                          tvb_bytes_to_str(tvb, offset + 1, 8));
+                          tvb_bytes_to_ep_str(tvb, offset + 1, 8));
       proto_tree_add_text(tree, tvb, offset + 9, 4,
                           "High Order DSP: %s",
-                          tvb_bytes_to_str(tvb, offset + 3, 10));
+                          tvb_bytes_to_ep_str(tvb, offset + 3, 10));
       proto_tree_add_text(tree, tvb, offset + 13, 6,
                           "End System Identifier: %s",
-                          tvb_bytes_to_str(tvb, offset + 13, 6));
+                          tvb_bytes_to_ep_str(tvb, offset + 13, 6));
       proto_tree_add_text(tree, tvb, offset + 19, 1,
                           "Selector: 0x%02X", tvb_get_guint8(tvb, offset + 19));
       break;
@@ -588,7 +588,7 @@ dissect_atm_nsap(tvbuff_t *tvb, int offset, int len, proto_tree *tree)
                           "Unknown AFI: 0x%02X", afi);
       proto_tree_add_text(tree, tvb, offset + 1, len - 1,
                           "Rest of address: %s",
-                          tvb_bytes_to_str(tvb, offset + 1, len - 1));
+                          tvb_bytes_to_ep_str(tvb, offset + 1, len - 1));
       break;
   }
 }
index d33d9d5731b0f687156f074e7d0d3970d69467ff..d8ddddd3a85c78a66d929d60be71feea62ddbd62 100644 (file)
@@ -5823,7 +5823,7 @@ fOctetString(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset,
     offset += fTagHeader(tvb, pinfo, offset, &tag_no, &tag_info, &lvt);
 
     if (lvt > 0) {
-        tmp = tvb_bytes_to_str(tvb, offset, lvt);
+        tmp = tvb_bytes_to_ep_str(tvb, offset, lvt);
         ti = proto_tree_add_text(tree, tvb, offset, lvt, "%s %s", label, tmp);
         offset += lvt;
     }
@@ -5868,7 +5868,7 @@ fMacAddress(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, c
             proto_tree_add_uint(tree, hf_bacapp_tag_PORT, tvb, offset+16, 2, port);
 
             } else { /* we have 1 Byte MS/TP Address or anything else interpreted as an address */
-                tmp = tvb_bytes_to_str(tvb, offset, lvt);
+                tmp = tvb_bytes_to_ep_str(tvb, offset, lvt);
                 ti = proto_tree_add_text(tree, tvb, offset, lvt, "%s", tmp);
             }
         }
index cf47efa1a0dac58e351e45b6284dc01c891050ac..46d75eb73502667784816caf60cf71b89d00bd16 100644 (file)
@@ -420,7 +420,7 @@ dissect_bacnet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                        offset ++;
                                        proto_tree_add_text(bacnet_tree, tvb, offset,
                                        bacnet_pinfolen, "Port Info: %s",
-                                       tvb_bytes_to_str(tvb, offset, bacnet_pinfolen));
+                                       tvb_bytes_to_ep_str(tvb, offset, bacnet_pinfolen));
                                        offset += bacnet_pinfolen;
                        }
                }
index f8dad6112630095a9cc0a1d6ea03484860cd3294..1c7943f2205211527dfdbb6c29c8aa98a40ec616 100644 (file)
@@ -4930,7 +4930,7 @@ dissect_ber_constrained_bitstring(gboolean implicit_tag, asn1_ctx_t *actx, proto
             if (bitstring[byteno]) {
                 expert_add_info_format(
                     actx->pinfo, item, &ei_ber_bits_unknown,
-                    "Unknown bit(s): 0x%s", bytes_to_str(bitstring, len));
+                    "Unknown bit(s): 0x%s", bytes_to_ep_str(bitstring, len));
                 break;
             }
         }
index 1dabdc7a47c09ad6dc05d11d4c03c851d7baaa1d..70d9af2252aa6acb0fed2772ac854e8c4b9ac911 100644 (file)
@@ -371,7 +371,7 @@ dissect_bfd_authentication(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 proto_tree_add_item(auth_tree, hf_bfd_auth_seq_num, tvb, offset+4, 4, ENC_BIG_ENDIAN);
 
                 proto_tree_add_text(auth_tree, tvb, offset+8, get_bfd_checksum_len(auth_type), "Checksum: 0x%s",
-                                    tvb_bytes_to_str(tvb, offset+8, get_bfd_checksum_len(auth_type)) );
+                                    tvb_bytes_to_ep_str(tvb, offset+8, get_bfd_checksum_len(auth_type)) );
             }
             break;
         default:
index 1e87c3f60a1c677d9edc2deeb9aef5e17b6f91b3..c56d758c9cc5e972cf1b59752a04c3a5c832e669 100644 (file)
@@ -4029,7 +4029,7 @@ dissect_bgp_update(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo)
                                 case TUNNEL_SUBTLV_ENCAPSULATION:
                                     if (encaps_tunnel_type == TUNNEL_TYPE_L2TP_OVER_IP) {
                                         proto_tree_add_text(subtree6, tvb, q + 2, 4, "Session ID: %u", tvb_get_letohl(tvb, q + 2));
-                                        proto_tree_add_text(subtree6, tvb, q + 6, encaps_tunnel_sublen - 4, "Cookie: %s", tvb_bytes_to_str(tvb, q + 6, encaps_tunnel_sublen - 4));
+                                        proto_tree_add_text(subtree6, tvb, q + 6, encaps_tunnel_sublen - 4, "Cookie: %s", tvb_bytes_to_ep_str(tvb, q + 6, encaps_tunnel_sublen - 4));
                                     } else if (encaps_tunnel_type == TUNNEL_TYPE_GRE) {
                                         proto_tree_add_text(subtree6, tvb, q + 2, encaps_tunnel_sublen, "GRE key: %x", tvb_get_letohl(tvb, q + 2));
                                     }
index 15da0e53f26b227d4840480f81d4a9376ef78216..31b1fc6c6c9c64dc4370cbc0fa1fd3e9dd5c8d3e 100644 (file)
@@ -1864,7 +1864,7 @@ bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, int voff,
                                            val_to_str_ext_const( enterprise, &sminmpec_values_ext, "Unknown"),
                                            enterprise);
                                if (optlen > 6) {
-                                               buf = tvb_bytes_to_str(tvb, optoff + 6, optlen - 11);
+                                               buf = tvb_bytes_to_ep_str(tvb, optoff + 6, optlen - 11);
                                        proto_tree_add_text(v_tree, tvb, optoff + 6,
                                                optlen - 11, "identifier: %s", buf);
                                }
index 0d610b799b70c6346a1c98c72dca64e318e65d90..06962b769d32c91ae47fa09844fce4b10ccf3353 100644 (file)
@@ -130,7 +130,7 @@ dissect_bencoded_string(tvbuff_t *tvb, packet_info _U_*pinfo, proto_tree *tree,
 
   /* fill the return data */
   if( tohex )
-    *result = tvb_bytes_to_str(tvb, offset, string_len );
+    *result = tvb_bytes_to_ep_str(tvb, offset, string_len );
   else
     *result = tvb_get_string( wmem_packet_scope(), tvb, offset, string_len );
 
@@ -320,7 +320,7 @@ dissect_bt_dht_nodes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint
     node_tree = proto_item_add_subtree( node_ti, ett_bt_dht_peers);
 
     proto_tree_add_item( node_tree, hf_bt_dht_id, tvb, offset, 20, ENC_NA);
-    proto_item_append_text(node_ti, " (id: %s", tvb_bytes_to_str(tvb, offset, 20));
+    proto_item_append_text(node_ti, " (id: %s", tvb_bytes_to_ep_str(tvb, offset, 20));
     proto_tree_add_item( node_tree, hf_ip, tvb, offset+20, 4, ENC_BIG_ENDIAN);
     proto_item_append_text(node_ti, ", IP/Port: %s", tvb_ip_to_str(tvb, offset+20));
     proto_tree_add_item( node_tree, hf_port, tvb, offset+24, 2, ENC_BIG_ENDIAN);
index 5244b109d85b941cac2cda6d127360fc5081a62e..018d54edcee272b70c63e352c93ee39363894fde 100644 (file)
@@ -1009,7 +1009,7 @@ print_uuid(uuid_t *uuid)
             }
         }
 
-        return bytes_to_str(uuid->data, uuid->size);
+        return bytes_to_ep_str(uuid->data, uuid->size);
     }
 }
 
@@ -1542,7 +1542,7 @@ reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo,
         offset++;
 
         continuation_state = (guint8 *) wmem_alloc(wmem_file_scope(), continuation_state_length);
-        packet_scope_string = tvb_bytes_to_str(tvb, offset, continuation_state_length);
+        packet_scope_string = tvb_bytes_to_ep_str(tvb, offset, continuation_state_length);
         memcpy(continuation_state, packet_scope_string, continuation_state_length);
 
         if (!pinfo->fd->flags.visited) {
@@ -2984,7 +2984,7 @@ dissect_sdp_type(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb,
                     break;
                 case 0x352:
                     proto_tree_add_item(next_tree, hf_bpp_character_repertoires_support, tvb, offset, size, ENC_ASCII | ENC_NA);
-                    new_str = tvb_bytes_to_str(tvb, offset, size);
+                    new_str = tvb_bytes_to_ep_str(tvb, offset, size);
                     wmem_strbuf_append(info_buf, new_str);
                     break;
                 case 0x354:
index df980877f4d4f0e65a6a4fe56ba5ca36f234a4cd..606cef559e3e67d095ce29b7386b8cb813066f64 100644 (file)
@@ -501,7 +501,7 @@ parse_c1222_detailed(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int cm
         proto_tree_add_uint(tree, hf_c1222_auth_len, tvb, *offset, 1, auth_len);
         *offset += 1;
         if (*length >= auth_len) {
-          auth_req = tvb_bytes_to_str(tvb, *offset, auth_len);
+          auth_req = tvb_bytes_to_ep_str(tvb, *offset, auth_len);
           proto_tree_add_item(tree, hf_c1222_auth_data, tvb, *offset, auth_len, ENC_NA);
           *offset += auth_len;
           *length -= auth_len + 1;
index a84c293011e06cca72c166a446f4f8e05bf3a929..6fdbb839bc0608d1b69eb436aae77c3a6555c3c8 100644 (file)
@@ -231,7 +231,7 @@ dissect_canopen(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
         col_add_fstr(pinfo->cinfo, COL_INFO, "p2p %s", function_code_str);
     }
     col_append_fstr(pinfo->cinfo, COL_INFO, "   %s",
-                    tvb_bytes_to_str_punct(tvb, offset, can_data_len, ' '));
+                    tvb_bytes_to_ep_str_punct(tvb, offset, can_data_len, ' '));
 
     if (tree) {
         proto_item *ti, *cob_ti, *type_ti;
index 0325a39f22ba1a6232e5d7d8f382f68fcd44626c..73416f768d941499320296e37a73ea66861a4274 100644 (file)
@@ -726,7 +726,7 @@ dissect_cdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 proto_tree_add_item(tlv_tree, hf_cdp_tlvlength, tvb, offset + TLV_LENGTH, 2, ENC_BIG_ENDIAN);
                 proto_tree_add_text(tlv_tree, tvb, offset + 4,
                                     length - 4, "System Object Identifier: %s",
-                                    tvb_bytes_to_str(tvb, offset + 4, length - 4));
+                                    tvb_bytes_to_ep_str(tvb, offset + 4, length - 4));
             }
             offset += length;
             break;
@@ -986,7 +986,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
         if (length != 0) {
             proto_tree_add_text(address_tree, tvb, offset, length,
               "Protocol: %s (truncated)",
-              tvb_bytes_to_str(tvb, offset, length));
+              tvb_bytes_to_ep_str(tvb, offset, length));
         }
         return -1;
     }
@@ -997,7 +997,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
     } else
         nlpid = -1;
     if (protocol_str == NULL)
-        protocol_str = tvb_bytes_to_str(tvb, offset, protocol_length);
+        protocol_str = tvb_bytes_to_ep_str(tvb, offset, protocol_length);
     proto_tree_add_text(address_tree, tvb, offset, protocol_length,
                         "Protocol: %s", protocol_str);
     offset += protocol_length;
@@ -1015,7 +1015,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
         if (length != 0) {
             proto_tree_add_text(address_tree, tvb, offset, length,
               "Address: %s (truncated)",
-              tvb_bytes_to_str(tvb, offset, length));
+              tvb_bytes_to_ep_str(tvb, offset, length));
         }
         return -1;
     }
@@ -1041,7 +1041,7 @@ dissect_address_tlv(tvbuff_t *tvb, int offset, int length, proto_tree *tree)
     if (address_type_str == NULL)
         address_type_str = "Address";
     if (address_str == NULL) {
-        address_str = tvb_bytes_to_str(tvb, offset, address_length);
+        address_str = tvb_bytes_to_ep_str(tvb, offset, address_length);
     }
     proto_item_set_text(ti, "%s: %s", address_type_str, address_str);
     proto_tree_add_text(address_tree, tvb, offset, address_length, "%s: %s",
index 40d60d89b67a3db21b51bb0059fb17087cb8eb7a..406222c782eabca304f04a7ed5b633a21f7ba111 100644 (file)
@@ -305,7 +305,7 @@ dissect_coap_opt_hex_string(tvbuff_t *tvb, proto_item *item, proto_tree *subtree
        if (opt_length == 0)
                str = nullstr;
        else
-               str = tvb_bytes_to_str_punct(tvb, offset, opt_length, ' ');
+               str = tvb_bytes_to_ep_str_punct(tvb, offset, opt_length, ' ');
 
        proto_tree_add_item(subtree, hf, tvb, offset, opt_length, ENC_NA);
 
@@ -825,7 +825,7 @@ dissect_coap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
 
        if (token_len > 0)
        {
-               g_strlcat(coap_token_str, tvb_bytes_to_str_punct(tvb, offset, token_len, ' '), sizeof(coap_token_str));
+               g_strlcat(coap_token_str, tvb_bytes_to_ep_str_punct(tvb, offset, token_len, ' '), sizeof(coap_token_str));
                proto_tree_add_item(coap_tree, hf_coap_token,
                                    tvb, offset, token_len, ENC_NA);
                offset += token_len;
index e6a2830c9288dfe8f5a7b3dcc6e1e7e5045b0cd0..e6f77db027d0a62dbebcd864dff84b1a15b6ae73 100644 (file)
@@ -105,7 +105,7 @@ dissect_data(tvbuff_t *tvb, packet_info *pinfo _U_ , proto_tree *tree)
                                md5_append(&md_ctx, cp, bytes);
                                md5_finish(&md_ctx, digest);
 
-                               digest_string = bytestring_to_str(digest, 16, '\0');
+                               digest_string = bytestring_to_ep_str(digest, 16, '\0');
                                ti = proto_tree_add_string(data_tree, &hfi_data_md5_hash, tvb, 0, 0, digest_string);
                                PROTO_ITEM_SET_GENERATED(ti);
                        }
index 99ad64d4091c8cf512ca9e93e0592e0ecc17e84b..6366b66c1cc3fec386d2c8b07cc9727b2deedbca 100644 (file)
@@ -1172,7 +1172,7 @@ static void dissect_nt_chal_resp_cb(packet_info *pinfo _U_, proto_tree *tree,
     start_offset += 12;
     len = end_offset - start_offset;
 
-    s = tvb_bytes_to_str(tvb, start_offset, len);
+    s = tvb_bytes_to_ep_str(tvb, start_offset, len);
 
     /* Append string to upper-level proto_items */
 
index 75fd2ff1a6b98d60d44dec485803bb7b416e8f11..ecb436c87b307fa4672a26819583f4762037bea7 100644 (file)
@@ -302,7 +302,7 @@ static void cb_byte_array_postprocess(packet_info *pinfo, proto_tree *tree _U_,
        if ((end_offset - start_offset) <= 12)
                return;
 
-       s = tvb_bytes_to_str(
+       s = tvb_bytes_to_ep_str(
                tvb, start_offset + 12, (end_offset - start_offset - 12) );
 
        /* Append string to COL_INFO */
index 63ffa3ed5fb3a231357da753d4fc4d5d35b3989a..1606ccc7ea6bdb16b5061cf627a1afe0bad2c6fc 100644 (file)
@@ -1481,9 +1481,9 @@ dissect_afield(gboolean dect_packet_type, guint8 *ba,
                proto_tree_add_string(ColumnsTree, hf_dect_cc_TA, tvb, offset, 1, "[Ct]");
 
                if(ta==DECT_TA_CT0)
-                       wmem_strbuf_append_printf(afield_str,"C-Channel Next  Data: %s",tvb_bytes_to_str(tvb, offset, 5));
+                       wmem_strbuf_append_printf(afield_str,"C-Channel Next  Data: %s",tvb_bytes_to_ep_str(tvb, offset, 5));
                else
-                       wmem_strbuf_append_printf(afield_str,"C-Channel First Data: %s",tvb_bytes_to_str(tvb, offset, 5));
+                       wmem_strbuf_append_printf(afield_str,"C-Channel First Data: %s",tvb_bytes_to_ep_str(tvb, offset, 5));
 
                proto_tree_add_string(ColumnsTree, hf_dect_cc_AField, tvb, offset, 1, wmem_strbuf_get_str(afield_str));
        }
@@ -1492,7 +1492,7 @@ dissect_afield(gboolean dect_packet_type, guint8 *ba,
                /* ETSI EN 300 175-3 V2.3.0  7.2.2 */
                proto_tree_add_string(ColumnsTree, hf_dect_cc_TA, tvb, offset, 1, "[Nt]");
 
-               wmem_strbuf_append_printf(afield_str,"RFPI: %s",tvb_bytes_to_str(tvb, offset, 5));
+               wmem_strbuf_append_printf(afield_str,"RFPI: %s",tvb_bytes_to_ep_str(tvb, offset, 5));
                proto_tree_add_string(ColumnsTree, hf_dect_cc_AField, tvb, offset, 1, wmem_strbuf_get_str(afield_str));
 
                proto_tree_add_item(atailti, hf_dect_A_Tail_Nt, tvb, offset, 5, ENC_NA);
@@ -1662,7 +1662,7 @@ dissect_afield(gboolean dect_packet_type, guint8 *ba,
                        proto_tree_add_item(ATail, hf_dect_A_Tail_Qt_6_Spare, tvb, offset, 2, ENC_BIG_ENDIAN);
                        offset+=2;
 
-                       wmem_strbuf_append_printf(afield_str,"Multi-Frame No.: %s",tvb_bytes_to_str(tvb, offset, 3));
+                       wmem_strbuf_append_printf(afield_str,"Multi-Frame No.: %s",tvb_bytes_to_ep_str(tvb, offset, 3));
                        proto_tree_add_string(ColumnsTree, hf_dect_cc_AField, tvb, offset, 1, wmem_strbuf_get_str(afield_str));
 
                        proto_tree_add_item(ATail, hf_dect_A_Tail_Qt_6_Mfn, tvb, offset, 3, ENC_NA);
@@ -1673,7 +1673,7 @@ dissect_afield(gboolean dect_packet_type, guint8 *ba,
                        break;
                case 7:         /* Escape */
                        /* ETSI EN 300 175-3 V2.3.0  7.2.3.8 */
-                       wmem_strbuf_append_printf(afield_str,"Escape Data: %s",tvb_bytes_to_str(tvb, offset, 5));
+                       wmem_strbuf_append_printf(afield_str,"Escape Data: %s",tvb_bytes_to_ep_str(tvb, offset, 5));
                        proto_tree_add_string(ColumnsTree, hf_dect_cc_AField, tvb, offset, 1, wmem_strbuf_get_str(afield_str));
                        break;
                case 8:         /* Obsolete */
index 66cf4399970e98b4886208570fc7b3192cc6457b..ed659fec6434679b262ab677406730778e14ed2a 100644 (file)
@@ -303,7 +303,7 @@ static gint body_type_8_over_8_dissection(guint8 data_length, proto_tree *device
     {
         length = offset-start_offset;
         proto_tree_add_bytes_format_value(devicenet_tree, hf_devicenet_data, tvb, offset, length,
-                            NULL, "%s", tvb_bytes_to_str_punct(tvb, offset, length, ' '));
+                            NULL, "%s", tvb_bytes_to_ep_str_punct(tvb, offset, length, ' '));
         offset += length;
     }
     return offset;
@@ -462,7 +462,7 @@ static int dissect_devicenet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
         col_set_str(pinfo->cinfo, COL_INFO, val_to_str_const(message_id, devicenet_grp_msg1_vals, "Other Group 1 Message"));
 
         proto_tree_add_bytes_format_value(devicenet_tree, hf_devicenet_data, tvb, offset, data_length,
-            NULL, "%s", tvb_bytes_to_str_punct(tvb, offset, data_length, ' '));
+            NULL, "%s", tvb_bytes_to_ep_str_punct(tvb, offset, data_length, ' '));
     }
     /*
      * Message group 2
@@ -496,12 +496,12 @@ static int dissect_devicenet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
         case 0x4:
         case 0x5:
             proto_tree_add_bytes_format_value(content_tree, hf_devicenet_data, tvb, offset, data_length,
-                NULL, "%s", tvb_bytes_to_str_punct(tvb, offset, data_length, ' '));
+                NULL, "%s", tvb_bytes_to_ep_str_punct(tvb, offset, data_length, ' '));
             break;
 
         case 0x6:
             proto_tree_add_bytes_format_value(content_tree, hf_devicenet_data, tvb, offset, data_length,
-                NULL, "%s", tvb_bytes_to_str_punct(tvb, offset, data_length, ' '));
+                NULL, "%s", tvb_bytes_to_ep_str_punct(tvb, offset, data_length, ' '));
             break;
 
         case 0x7:
@@ -657,7 +657,7 @@ static int dissect_devicenet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
                 if(service_rr & CIP_SC_MASK)
                 {
                     proto_tree_add_bytes_format_value(devicenet_tree, hf_devicenet_data, tvb, offset, data_length - 2,
-                        NULL, "%s", tvb_bytes_to_str_punct(tvb, offset, data_length - 2, ' '));
+                        NULL, "%s", tvb_bytes_to_ep_str_punct(tvb, offset, data_length - 2, ' '));
                 }
                 else
                 {
@@ -683,7 +683,7 @@ static int dissect_devicenet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
                                 break;
                             default:
                                 proto_tree_add_bytes_format_value(content_tree, hf_devicenet_data, tvb, offset, data_length,
-                                    NULL, "%s", tvb_bytes_to_str_punct(tvb, offset, data_length, ' '));
+                                    NULL, "%s", tvb_bytes_to_ep_str_punct(tvb, offset, data_length, ' '));
                                 break;
                             }
                         }
index d3a439cde0ff16804e5bc7011ad1e200dffbe066..6b35b8fe912768fdfd42184ddf64de8fa4629395 100644 (file)
@@ -1200,7 +1200,7 @@ dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_i
                 opt_len = tlv_len;
                 if (tlv_len == 3) {
                     proto_item_append_text(ti, "%s",
-                        tvb_bytes_to_str_punct(tvb, sub_off, 3, ':'));
+                        tvb_bytes_to_ep_str_punct(tvb, sub_off, 3, ':'));
                 } else if (tlv_len == 6) {
                     proto_item_append_text(ti, "\"%s\"", tvb_format_stringzpad(tvb, sub_off, tlv_len));
                 } else {
@@ -1242,7 +1242,7 @@ dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_i
                 }
                 else {
                     proto_item_append_text(ti, "%s",
-                                           tvb_bytes_to_str(tvb, sub_off, field_len));
+                                           tvb_bytes_to_ep_str(tvb, sub_off, field_len));
                 }
                 break;
             case CL_OPTION_TLV5 :
@@ -1355,14 +1355,14 @@ dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_i
                 }
                 else {
                     /*proto_item_append_text(ti, "CM MAC Address Option = %s", */
-                    proto_item_append_text(ti, "%s", tvb_bytes_to_str_punct(tvb, sub_off, opt_len, ':'));
-                    /* tvb_bytes_to_str(tvb, sub_off, opt_len)); */
+                    proto_item_append_text(ti, "%s", tvb_bytes_to_ep_str_punct(tvb, sub_off, opt_len, ':'));
+                    /* tvb_bytes_to_ep_str(tvb, sub_off, opt_len)); */
                 }
                 break;
             case CL_EROUTER_CONTAINER_OPTION :
                 opt_len = tlv_len;
                 proto_item_append_text(ti, " %s (len=%d)",
-                                       tvb_bytes_to_str(tvb, sub_off, opt_len), tlv_len);
+                                       tvb_bytes_to_ep_str(tvb, sub_off, opt_len), tlv_len);
                 break;
             case CL_OPTION_CCC :
                 opt_len = tlv_len;
@@ -1518,7 +1518,7 @@ dhcpv6_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree,
 
     switch (opttype) {
     case OPTION_CLIENTID:
-        col_append_fstr(pinfo->cinfo, COL_INFO, "CID: %s ", tvb_bytes_to_str(tvb, off, optlen));
+        col_append_fstr(pinfo->cinfo, COL_INFO, "CID: %s ", tvb_bytes_to_ep_str(tvb, off, optlen));
         /* Fall through */
     case OPTION_SERVERID:
     case OPTION_RELAYID:
index 989f8ec509279d8bba546d41417bbec7091313a0..4ee60a82608f38e24546edac6dc9a1fbdb6bee53 100644 (file)
@@ -2664,7 +2664,7 @@ static gint dissect_mts_identifier (tvbuff_t *tvb, packet_info *pinfo _U_, proto
   } else if (dmp_nat_decode == NAT_DECODE_THALES) {
     mts_id = dissect_thales_mts_id (tvb, offset, dmp.mts_id_length);
   } else {
-    mts_id = tvb_bytes_to_str (tvb, offset, dmp.mts_id_length);
+    mts_id = tvb_bytes_to_ep_str (tvb, offset, dmp.mts_id_length);
   }
   proto_item_append_text (dmp.mts_id_item, " (%zu bytes decompressed)", strlen (mts_id));
   mts_id = format_text (mts_id, strlen (mts_id));
@@ -2713,7 +2713,7 @@ static gint dissect_ipm_identifier (tvbuff_t *tvb, packet_info *pinfo _U_, proto
   } else if (dmp_nat_decode == NAT_DECODE_THALES) {
     ipm_id = dissect_thales_ipm_id (tvb, offset, ipm_id_length, modifier);
   } else {
-    ipm_id = tvb_bytes_to_str (tvb, offset, ipm_id_length);
+    ipm_id = tvb_bytes_to_ep_str (tvb, offset, ipm_id_length);
   }
   proto_item_append_text (tf, " (%zu bytes decompressed)", strlen (ipm_id));
   ipm_id = format_text (ipm_id, strlen (ipm_id));
index 58b5966d2db171bfc6b9de82667dfc2c1f6757fb..5214ba7dd7342db7d7ab5bcf75d326367b78331c 100644 (file)
@@ -498,7 +498,7 @@ dissect_eap_mschapv2(proto_tree *eap_tree, tvbuff_t *tvb, packet_info *pinfo, in
     } else {
       proto_tree_add_text(eap_tree, tvb, offset, value_size,
               "EAP-MS-CHAP-v2 Response (Unknown Length): %s",
-              tvb_bytes_to_str(tvb, offset, value_size));
+              tvb_bytes_to_ep_str(tvb, offset, value_size));
       offset += value_size;
       left   -= value_size;
     }
@@ -522,7 +522,7 @@ dissect_eap_mschapv2(proto_tree *eap_tree, tvbuff_t *tvb, packet_info *pinfo, in
     proto_tree_add_text(eap_tree, tvb, offset, left,
             "EAP-MS-CHAP-v2 Data (%d byte%s): \"%s\"",
             left, plurality(left, "", "s"),
-            tvb_bytes_to_str(tvb, offset, left));
+            tvb_bytes_to_ep_str(tvb, offset, left));
     break;
   }
 }
@@ -1132,7 +1132,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
             proto_tree_add_text(eap_tree, tvb, offset, count,
                                 "EAP-LEAP Data (%d byte%s): \"%s\"",
                                 count, plurality(count, "", "s"),
-                                tvb_bytes_to_str(tvb, offset, count));
+                                tvb_bytes_to_ep_str(tvb, offset, count));
             break;
           }
         }
@@ -1193,7 +1193,7 @@ dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
           proto_tree_add_text(eap_tree, tvb, offset, size,
                               "EAP Data (%d byte%s): \"%s\"",
                               size, plurality(size, "", "s"),
-                              tvb_bytes_to_str(tvb, offset, size));
+                              tvb_bytes_to_ep_str(tvb, offset, size));
         }
         break;
         /*********************************************************************
index 46a106027486ad5b7878eee46b9b532a76a7c95f..7296af1e0a3607aa20d7c1a6562ea4efac0fbb6a 100644 (file)
@@ -1072,7 +1072,7 @@ static int dissect_kademlia_tag_bsob(tvbuff_t *tvb, packet_info *pinfo _U_,
     guint16 bsob_length;
 
     bsob_length = tvb_get_guint8(tvb, offset);
-    *string_value = tvb_bytes_to_str( tvb, offset + 1, bsob_length );
+    *string_value = tvb_bytes_to_ep_str( tvb, offset + 1, bsob_length );
 
     proto_tree_add_item(tree, hf_kademlia_tag_bsob, tvb, offset + 1, bsob_length, ENC_NA);
     return offset + 1 + bsob_length;
@@ -2372,7 +2372,7 @@ static int dissect_kademlia_tag(tvbuff_t *tvb, packet_info *pinfo _U_,
     switch( type )
     {
         case KADEMLIA_TAGTYPE_HASH:
-            proto_item_append_text( tag_node, "%s", tvb_bytes_to_str( tvb, offset, 16 ));
+            proto_item_append_text( tag_node, "%s", tvb_bytes_to_ep_str( tvb, offset, 16 ));
             offset = dissect_kademlia_tag_hash( tvb, pinfo, offset, subtree );
             break;
         case KADEMLIA_TAGTYPE_STRING:
index c8b8164737c0552bc5f569555c102246d6826362..182700b8994a708517bf5cfa1ef672accfdc9628 100644 (file)
@@ -944,7 +944,7 @@ dissect_cat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
                ti = proto_tree_add_bytes_format(cat_tree, hf_cat_tlv, tvb, pos,
                                            len, ptr, "%s: %s",
                                            val_to_str(tag, comp_tlv_tag_vals, "%02x"),
-                                           (const guint8 *)tvb_bytes_to_str(tvb, pos, len));
+                                           (const guint8 *)tvb_bytes_to_ep_str(tvb, pos, len));
 #else
                ti = proto_tree_add_bytes_format(cat_tree, hf_cat_tlv, tvb, pos,
                                            len, ptr, "%s:   ",
index f3448bb3ac28f76aadcc298e338e3f7716e380f4..ae545f200ef3ec79fb9b9e5145068f066f31ee4d 100644 (file)
@@ -826,7 +826,7 @@ static void dissect_fc_sbccs_dib_link_hdr (tvbuff_t *tvb, packet_info *pinfo,
                 proto_tree_add_text (tree, tvb, offset, 4,
                                      "Logical Paths %d-%d: %s",
                                      i*8, ((i+4)*8) - 1,
-                                     tvb_bytes_to_str_punct (tvb, offset, 4, ':'));
+                                     tvb_bytes_to_ep_str_punct (tvb, offset, 4, ':'));
                 i += 4;
                 offset += 4;
             }
index 0ce44e713286193d0c79f797016a53b822185f5f..811be9f4297dd470ab7d60daa29b5472e2f5515a 100644 (file)
@@ -455,7 +455,7 @@ dissect_fip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             proto_tree_add_item(subtree, hf_fip_desc_mac, desc_tvb,
                     2, 6, ENC_NA);
             proto_item_append_text(item, "%s",
-                    tvb_bytes_to_str_punct(desc_tvb, 2, 6, ':'));
+                    tvb_bytes_to_ep_str_punct(desc_tvb, 2, 6, ':'));
             break;
         case FIP_DT_MAP_OUI:
             subtree = proto_item_add_subtree(item, ett_fip_dt_map);
@@ -518,7 +518,7 @@ dissect_fip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
             proto_tree_add_string(subtree, hf_fip_desc_vn_wwpn,
                     desc_tvb, 12, 8, text);
             proto_item_append_text(item, "MAC %s  FC_ID %6.6x",
-                    tvb_bytes_to_str_punct(desc_tvb, 2, 6, ':'),
+                    tvb_bytes_to_ep_str_punct(desc_tvb, 2, 6, ':'),
                     tvb_get_ntoh24(desc_tvb, 9));
             break;
         case FIP_DT_FKA:
index 31630630239b2b7f8c41e7fff2ff4296ef5f594c..9666be45621f6e741341a508896221578985faaf 100644 (file)
@@ -397,7 +397,7 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
                        md5_append(&md_ctx, cp, cap_len);
                        md5_finish(&md_ctx, digest);
 
-                       digest_string = bytestring_to_str(digest, 16, '\0');
+                       digest_string = bytestring_to_ep_str(digest, 16, '\0');
                        ti = proto_tree_add_string(fh_tree, hf_frame_md5_hash, tvb, 0, 0, digest_string);
                        PROTO_ITEM_SET_GENERATED(ti);
                }
index a3d97ca32b16874e3d2bf982f894159275d1a77b..d0ddb83d7319d303984d5218436d642fccea5069 100644 (file)
@@ -1238,7 +1238,7 @@ be_enc_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 off
     proto_tree_add_text(tree,
         tvb, curr_offset, len - (curr_offset - offset),
         "Key: %s",
-        tvb_bytes_to_str(tvb, curr_offset, len-(curr_offset-offset) ));
+        tvb_bytes_to_ep_str(tvb, curr_offset, len-(curr_offset-offset) ));
 
     curr_offset += len - (curr_offset - offset);
 
index 19e2c0254efa223c2adbe9c41a05a26224e3e64b..98dd6e9c8ffa9f4335af2365824104ef688df7e1 100644 (file)
@@ -2881,7 +2881,7 @@ de_cause(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset
        {
                diag_length = len - (curr_offset - offset);
                proto_tree_add_text(subtree, tvb, curr_offset, diag_length,
-                       "Data: %s", tvb_bytes_to_str(tvb, curr_offset, diag_length));
+                       "Data: %s", tvb_bytes_to_ep_str(tvb, curr_offset, diag_length));
                curr_offset += diag_length;
        }
 
@@ -3367,7 +3367,7 @@ de_u2u(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_, guint32 offset,
        item = proto_tree_add_text(tree, tvb, curr_offset, len - 1, "User-user information");
        subtree = proto_item_add_subtree(item, ett_gsm_dtap_elem[DE_USER_USER]);
        proto_tree_add_text(subtree, tvb, curr_offset, len - 1,
-                       "Data: %s", tvb_bytes_to_str(tvb, curr_offset, len - 1));
+                       "Data: %s", tvb_bytes_to_ep_str(tvb, curr_offset, len - 1));
 
        return(len);
 }
index f752196231aed2026d4edba6a6ace24a05fbf078..0e8bf7523e6829f3b602f9549315559d2c08ebdc 100644 (file)
@@ -5262,7 +5262,7 @@ de_sm_tflow_temp(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 of
                        switch (param) {
                        case 0x01:
                                proto_tree_add_text(tf_tree, tvb, curr_offset, pf_length, "Authorization token value: 0x%s",
-                                                   tvb_bytes_to_str(tvb, curr_offset, pf_length));
+                                                   tvb_bytes_to_ep_str(tvb, curr_offset, pf_length));
                                break;
 
                        case 0x02:
@@ -5282,7 +5282,7 @@ de_sm_tflow_temp(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 of
 
                        default:
                                proto_tree_add_text(tf_tree, tvb, curr_offset, pf_length, "Parameter content: 0x%s",
-                                                   tvb_bytes_to_str(tvb, curr_offset, pf_length));
+                                                   tvb_bytes_to_ep_str(tvb, curr_offset, pf_length));
                                break;
                        }
                        curr_offset += pf_length;
index b0901661e2d8f6ebe18f3a7f9714f17ec458f3df..4683304a38a061b82ff69bc91aec7a41de9eb52b 100644 (file)
@@ -591,7 +591,7 @@ dissect_om2k_attr_unkn(tvbuff_t *tvb, gint offset, gint len, gint iei, proto_tre
                                    offset, len, NULL,
                                    "%s: %s",
                                    val_to_str_ext(iei, &om2k_attr_vals_ext, "0x%02x"),
-                                   tvb_bytes_to_str(tvb, offset, len));
+                                   tvb_bytes_to_ep_str(tvb, offset, len));
        return len;
 }
 
index 98676b405264d4b248b03bcd9ece67584620b683..d233c4a767730042ad2828380ff5b2f921e63174 100644 (file)
@@ -1179,7 +1179,7 @@ dissect_gsm_apdu(guint8 ins, guint8 p1, guint8 p2, guint8 p3, tvbuff_t *tvb,
                        break;
                case 0x04:      /* select by AID */
                        col_append_fstr(pinfo->cinfo, COL_INFO, "Application %s ",
-                                       tvb_bytes_to_str(tvb, offset+DATA_OFFS, p3));
+                                       tvb_bytes_to_ep_str(tvb, offset+DATA_OFFS, p3));
                        proto_tree_add_item(tree, hf_aid, tvb, offset+DATA_OFFS, p3, ENC_NA);
                        break;
 
index 08e6fa9f9a80a801e90c72c8b12baff031787f2d..31daa404905a104b9b17e13ea0f7c4b9a209f67d 100644 (file)
@@ -3350,9 +3350,9 @@ decode_gtp_auth_tri(tvbuff_t * tvb, int offset, packet_info * pinfo _U_, proto_t
     te = proto_tree_add_text(tree, tvb, offset, 29, "%s", val_to_str_ext_const(GTP_EXT_AUTH_TRI, &gtp_val_ext, "Unknown message"));
     ext_tree_auth_tri = proto_item_add_subtree(te, ett_gtp_ies[GTP_EXT_AUTH_TRI]);
 
-    proto_tree_add_text(ext_tree_auth_tri, tvb, offset + 1, 16, "RAND: %s", tvb_bytes_to_str(tvb, offset + 1, 16));
-    proto_tree_add_text(ext_tree_auth_tri, tvb, offset + 17, 4, "SRES: %s", tvb_bytes_to_str(tvb, offset + 17, 4));
-    proto_tree_add_text(ext_tree_auth_tri, tvb, offset + 21, 8, "Kc: %s",   tvb_bytes_to_str(tvb, offset + 21, 8));
+    proto_tree_add_text(ext_tree_auth_tri, tvb, offset + 1, 16, "RAND: %s", tvb_bytes_to_ep_str(tvb, offset + 1, 16));
+    proto_tree_add_text(ext_tree_auth_tri, tvb, offset + 17, 4, "SRES: %s", tvb_bytes_to_ep_str(tvb, offset + 17, 4));
+    proto_tree_add_text(ext_tree_auth_tri, tvb, offset + 21, 8, "Kc: %s",   tvb_bytes_to_ep_str(tvb, offset + 21, 8));
 
     return 1 + 16 + 4 + 8;
 }
@@ -3927,9 +3927,9 @@ decode_triplet(tvbuff_t * tvb, int offset, proto_tree * tree, guint16 count)
         te_trip = proto_tree_add_text(tree, tvb, offset + i * 28, 28, "Triplet no%x", i);
         ext_tree_trip = proto_item_add_subtree(te_trip, ett_gtp_trip);
 
-        proto_tree_add_text(ext_tree_trip, tvb, offset + i * 28, 16, "RAND: %s", tvb_bytes_to_str(tvb, offset + i * 28, 16));
-        proto_tree_add_text(ext_tree_trip, tvb, offset + i * 28 + 16, 4, "SRES: %s", tvb_bytes_to_str(tvb, offset + i * 28 + 16, 4));
-        proto_tree_add_text(ext_tree_trip, tvb, offset + i * 28 + 20, 8, "Kc: %s", tvb_bytes_to_str(tvb, offset + i * 28 + 20, 8));
+        proto_tree_add_text(ext_tree_trip, tvb, offset + i * 28, 16, "RAND: %s", tvb_bytes_to_ep_str(tvb, offset + i * 28, 16));
+        proto_tree_add_text(ext_tree_trip, tvb, offset + i * 28 + 16, 4, "SRES: %s", tvb_bytes_to_ep_str(tvb, offset + i * 28 + 16, 4));
+        proto_tree_add_text(ext_tree_trip, tvb, offset + i * 28 + 20, 8, "Kc: %s", tvb_bytes_to_ep_str(tvb, offset + i * 28 + 20, 8));
     }
 
     return count * 28;
@@ -3954,21 +3954,21 @@ decode_quintuplet(tvbuff_t * tvb, int offset, proto_tree * tree, guint16 count)
         ext_tree_quint = proto_item_add_subtree(te_quint, ett_gtp_quint);
 
 
-        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 16, "RAND: %s", tvb_bytes_to_str(tvb, offset, 16));
+        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 16, "RAND: %s", tvb_bytes_to_ep_str(tvb, offset, 16));
         q_offset = q_offset + 16;
         xres_len = tvb_get_guint8(tvb, offset + q_offset);
         proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 1, "XRES length: %u", xres_len);
         q_offset++;
-        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, xres_len, "XRES: %s", tvb_bytes_to_str(tvb, offset + q_offset, xres_len));
+        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, xres_len, "XRES: %s", tvb_bytes_to_ep_str(tvb, offset + q_offset, xres_len));
         q_offset = q_offset + xres_len;
-        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 16, "Quintuplet Ciphering Key: %s", tvb_bytes_to_str(tvb, offset + q_offset, 16));
+        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 16, "Quintuplet Ciphering Key: %s", tvb_bytes_to_ep_str(tvb, offset + q_offset, 16));
         q_offset = q_offset + 16;
-        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 16, "Quintuplet Integrity Key: %s", tvb_bytes_to_str(tvb, offset + q_offset, 16));
+        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 16, "Quintuplet Integrity Key: %s", tvb_bytes_to_ep_str(tvb, offset + q_offset, 16));
         q_offset = q_offset + 16;
         auth_len = tvb_get_guint8(tvb, offset + q_offset);
         proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, 1, "Authentication length: %u", auth_len);
         q_offset++;
-        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, auth_len, "AUTH: %s", tvb_bytes_to_str(tvb, offset + q_offset, auth_len));
+        proto_tree_add_text(ext_tree_quint, tvb, offset + q_offset, auth_len, "AUTH: %s", tvb_bytes_to_ep_str(tvb, offset + q_offset, auth_len));
 
         q_offset = q_offset + auth_len;
         proto_item_set_end(te_quint, tvb, offset + q_offset);
@@ -4019,8 +4019,8 @@ decode_gtp_mm_cntxt(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree
         proto_tree_add_item(ext_tree_mm, hf_gtp_security_mode,    tvb, offset + 4, 1, ENC_BIG_ENDIAN);
         proto_tree_add_item(ext_tree_mm, hf_gtp_no_of_vectors,    tvb, offset + 4, 1, ENC_BIG_ENDIAN);
         proto_tree_add_item(ext_tree_mm, hf_gtp_cipher_algorithm, tvb, offset + 4, 1, ENC_BIG_ENDIAN);
-        proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 16, "Ciphering key CK: %s", tvb_bytes_to_str(tvb, offset + 5, 16));
-        proto_tree_add_text(ext_tree_mm, tvb, offset + 21, 16, "Integrity key IK: %s", tvb_bytes_to_str(tvb, offset + 21, 16));
+        proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 16, "Ciphering key CK: %s", tvb_bytes_to_ep_str(tvb, offset + 5, 16));
+        proto_tree_add_text(ext_tree_mm, tvb, offset + 21, 16, "Integrity key IK: %s", tvb_bytes_to_ep_str(tvb, offset + 21, 16));
         quint_len = tvb_get_ntohs(tvb, offset + 37);
         proto_tree_add_text(ext_tree_mm, tvb, offset + 37, 2, "Quintuplets length: 0x%x (%u)", quint_len, quint_len);
 
@@ -4035,7 +4035,7 @@ decode_gtp_mm_cntxt(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree
 
         proto_tree_add_item(ext_tree_mm, hf_gtp_no_of_vectors,    tvb, offset + 4, 1, ENC_BIG_ENDIAN);
         proto_tree_add_item(ext_tree_mm, hf_gtp_cipher_algorithm, tvb, offset + 4, 1, ENC_BIG_ENDIAN);
-        proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 8, "Ciphering key Kc: %s", tvb_bytes_to_str(tvb, offset + 5, 8));
+        proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 8, "Ciphering key Kc: %s", tvb_bytes_to_ep_str(tvb, offset + 5, 8));
 
         offset = offset + decode_triplet(tvb, offset + 13, ext_tree_mm, count) + 13;
 
@@ -4044,8 +4044,8 @@ decode_gtp_mm_cntxt(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree
         proto_tree_add_item(ext_tree_mm, hf_gtp_ksi, tvb, offset + 3, 1, ENC_BIG_ENDIAN);
         proto_tree_add_item(ext_tree_mm, hf_gtp_security_mode, tvb, offset + 4, 1, ENC_BIG_ENDIAN);
         proto_tree_add_item(ext_tree_mm, hf_gtp_no_of_vectors, tvb, offset + 4, 1, ENC_BIG_ENDIAN);
-        proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 16, "Ciphering key CK: %s", tvb_bytes_to_str(tvb, offset + 5, 16));
-        proto_tree_add_text(ext_tree_mm, tvb, offset + 21, 16, "Integrity key IK: %s", tvb_bytes_to_str(tvb, offset + 21, 16));
+        proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 16, "Ciphering key CK: %s", tvb_bytes_to_ep_str(tvb, offset + 5, 16));
+        proto_tree_add_text(ext_tree_mm, tvb, offset + 21, 16, "Integrity key IK: %s", tvb_bytes_to_ep_str(tvb, offset + 21, 16));
         quint_len = tvb_get_ntohs(tvb, offset + 37);
         proto_tree_add_text(ext_tree_mm, tvb, offset + 37, 2, "Quintuplets length: 0x%x (%u)", quint_len, quint_len);
 
@@ -4058,7 +4058,7 @@ decode_gtp_mm_cntxt(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree
         proto_tree_add_item(ext_tree_mm, hf_gtp_no_of_vectors,    tvb, offset + 4, 1, ENC_BIG_ENDIAN);
         proto_tree_add_item(ext_tree_mm, hf_gtp_cipher_algorithm, tvb, offset + 4, 1, ENC_BIG_ENDIAN);
         proto_tree_add_text(ext_tree_mm, tvb, offset + 5, 8,
-                            "Ciphering key Kc: %s", tvb_bytes_to_str(tvb, offset + 5, 8));
+                            "Ciphering key Kc: %s", tvb_bytes_to_ep_str(tvb, offset + 5, 8));
         quint_len = tvb_get_ntohs(tvb, offset + 13);
         proto_tree_add_text(ext_tree_mm, tvb, offset + 13, 2, "Quintuplets length: 0x%x (%u)", quint_len, quint_len);
 
@@ -4996,21 +4996,21 @@ decode_gtp_auth_qui(tvbuff_t * tvb, int offset, packet_info * pinfo _U_, proto_t
     proto_tree_add_item(ext_tree, hf_gtp_ext_length, tvb, offset, 2, ENC_BIG_ENDIAN);
     offset = offset + 2;
 
-    proto_tree_add_text(ext_tree, tvb, offset, 16, "RAND: %s", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(ext_tree, tvb, offset, 16, "RAND: %s", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset = offset + 16;
     xres_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_text(ext_tree, tvb, offset, 1, "XRES length: %u", xres_len);
     offset++;
-    proto_tree_add_text(ext_tree, tvb, offset, xres_len, "XRES: %s", tvb_bytes_to_str(tvb, offset, xres_len));
+    proto_tree_add_text(ext_tree, tvb, offset, xres_len, "XRES: %s", tvb_bytes_to_ep_str(tvb, offset, xres_len));
     offset = offset + xres_len;
-    proto_tree_add_text(ext_tree, tvb, offset, 16, "Quintuplet Ciphering Key: %s", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(ext_tree, tvb, offset, 16, "Quintuplet Ciphering Key: %s", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset = offset + 16;
-    proto_tree_add_text(ext_tree, tvb, offset, 16, "Quintuplet Integrity Key: %s", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(ext_tree, tvb, offset, 16, "Quintuplet Integrity Key: %s", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset = offset + 16;
     auth_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_text(ext_tree, tvb, offset, 1, "Authentication length: %u", auth_len);
     offset++;
-    proto_tree_add_text(ext_tree, tvb, offset, auth_len, "AUTH: %s", tvb_bytes_to_str(tvb, offset, auth_len));
+    proto_tree_add_text(ext_tree, tvb, offset, auth_len, "AUTH: %s", tvb_bytes_to_ep_str(tvb, offset, auth_len));
 
     return (3 + length);
 
@@ -5683,7 +5683,7 @@ gchar *dissect_radius_user_loc(proto_tree * tree, tvbuff_t * tvb, packet_info* p
             break;
     }
 
-    return tvb_bytes_to_str(tvb, 0, length);
+    return tvb_bytes_to_ep_str(tvb, 0, length);
 }
 
 /*
index 89f85b1b0ab3cf4b1cf898b5a6d41f9ec64c3d6a..1c00d4a78bb2cce30e9771342cdcef454c228b93 100644 (file)
@@ -1131,7 +1131,7 @@ dissect_gtpv2_src_tgt_trans_con(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
      * to Target RNC Transparent Container IE defined in 3GPP TS 25.413 [9]. The Transparent container field includes the
      * IE value part as it is specified in the respective specification.
      */
-    proto_tree_add_text(tree, tvb, offset, length-1, "Transparent Container: %s", tvb_bytes_to_str(tvb, offset, length-1));
+    proto_tree_add_text(tree, tvb, offset, length-1, "Transparent Container: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
     /*
      * bssmap_old_bss_to_new_bss_info(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo);
      * dissect_ranap_SourceRNC_ToTargetRNC_TransparentContainer_PDU
@@ -1148,7 +1148,7 @@ dissect_gtpv2_tgt_src_trans_con(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
     offset += 1;
 
     /* Transparent Container */
-    proto_tree_add_text(tree, tvb, offset, length-1, "Transparent Container: %s", tvb_bytes_to_str(tvb, offset, length-1));
+    proto_tree_add_text(tree, tvb, offset, length-1, "Transparent Container: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 
 
 }
@@ -1163,16 +1163,16 @@ dissect_gtpv2_mm_con_eutran_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
 
     proto_tree_add_item(tree, hf_gtpv2_eksi, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    proto_tree_add_text(tree, tvb, offset , 16, "CKsrvcc: %s ", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(tree, tvb, offset , 16, "CKsrvcc: %s ", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset += 16;
-    proto_tree_add_text(tree, tvb, offset, 16, "IKsrvcc: %s ", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(tree, tvb, offset, 16, "IKsrvcc: %s ", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset += 16;
 
   /* Length of Mobile Station Classmark2  */
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_ms_classmark2, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark2  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark2  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_tree = proto_item_add_subtree(fi, ett_gtpv2_ms_mark);
     de_ms_cm_2(tvb, ms_tree, pinfo, offset, elm_len, NULL, 0);
     offset += elm_len;
@@ -1181,7 +1181,7 @@ dissect_gtpv2_mm_con_eutran_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_ms_classmark3, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark3 %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark3 %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_tree = proto_item_add_subtree(fi, ett_gtpv2_ms_mark);
     de_ms_cm_3(tvb, ms_tree, pinfo, offset, elm_len, NULL, 0);
     offset += elm_len;
@@ -1190,7 +1190,7 @@ dissect_gtpv2_mm_con_eutran_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_supp_codec_list, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Supported Codec List  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Supported Codec List  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_tree = proto_item_add_subtree(fi, ett_gtpv2_supp_codec_list);
     de_sup_codec_list(tvb, ms_tree, pinfo, offset, elm_len, NULL, 0);
 
@@ -1207,11 +1207,11 @@ dissect_gtpv2_mm_con_utran_srvcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
     proto_tree_add_item(tree, hf_gtpv2_ksi, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
 
-    proto_tree_add_text(tree, tvb, offset, 16, "CK'cs: %s", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(tree, tvb, offset, 16, "CK'cs: %s", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset += 16;
-    proto_tree_add_text(tree, tvb, offset, 16, "IK'cs: %s", tvb_bytes_to_str(tvb, offset, 16));
+    proto_tree_add_text(tree, tvb, offset, 16, "IK'cs: %s", tvb_bytes_to_ep_str(tvb, offset, 16));
     offset += 16;
-    proto_tree_add_text(tree, tvb, offset,  8, "Kc': %s",   tvb_bytes_to_str(tvb, offset, 8));
+    proto_tree_add_text(tree, tvb, offset,  8, "Kc': %s",   tvb_bytes_to_ep_str(tvb, offset, 8));
     offset += 8;
     proto_tree_add_item(tree, hf_gtpv2_cksn, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
@@ -1220,7 +1220,7 @@ dissect_gtpv2_mm_con_utran_srvcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_ms_classmark2, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark2  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark2  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_tree = proto_item_add_subtree(fi, ett_gtpv2_ms_mark);
     de_ms_cm_2(tvb, ms_tree, pinfo, offset, elm_len, NULL, 0);
     offset += elm_len;
@@ -1229,7 +1229,7 @@ dissect_gtpv2_mm_con_utran_srvcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_ms_classmark3, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark3  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark3  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_tree = proto_item_add_subtree(fi, ett_gtpv2_ms_mark);
     de_ms_cm_3(tvb, ms_tree, pinfo, offset, elm_len, NULL, 0);
     offset += elm_len;
@@ -1238,7 +1238,7 @@ dissect_gtpv2_mm_con_utran_srvcc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_supp_codec_list, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Supported Codec List  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    fi = proto_tree_add_text(tree, tvb, offset, elm_len, "Supported Codec List  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_tree = proto_item_add_subtree(fi, ett_gtpv2_supp_codec_list);
     de_sup_codec_list(tvb, ms_tree, pinfo, offset, elm_len, NULL, 0);
 
@@ -1389,7 +1389,7 @@ dissect_gtpv2_teid_c(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, pr
     proto_tree_add_item(tree, hf_gtpv2_teid_c, tvb, offset, 4, ENC_BIG_ENDIAN);
     offset += 4;
     if (length > 4)
-        proto_tree_add_text(tree, tvb, offset, length-4, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-4));
+        proto_tree_add_text(tree, tvb, offset, length-4, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-4));
 
     proto_item_append_text(item, "%u", tvb_get_ntohl(tvb, offset-4));
 }
@@ -1404,7 +1404,7 @@ dissect_gtpv2_sv_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
     proto_tree_add_item(tree, hf_gtpv2_sv_emind, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 6.12 Service Area Identifier */
@@ -2145,7 +2145,7 @@ dissect_gtpv2_f_teid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, pr
     proto_tree_add_item(tree, hf_gtpv2_f_teid_gre_key, tvb, offset, 4, ENC_BIG_ENDIAN);
     proto_item_append_text(item, "%s, TEID/GRE Key: 0x%s",
                            val_to_str_ext_const((flags & 0x3f), &gtpv2_f_teid_interface_type_vals_ext, "Unknown"),
-                           tvb_bytes_to_str(tvb, offset, 4));
+                           tvb_bytes_to_ep_str(tvb, offset, 4));
 
     offset += 4;
     if (flags & 0x80)
@@ -2167,7 +2167,7 @@ static void
 dissect_gtpv2_tmsi(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto_item *item, guint16 length, guint8 message_type _U_, guint8 instance _U_)
 {
     proto_tree_add_item(tree, hf_gtpv2_tmsi, tvb, 0, 4, ENC_BIG_ENDIAN);
-    proto_tree_add_text(item, tvb, 0, length, "TMSI: %s", tvb_bytes_to_str(tvb, 0, 4));
+    proto_tree_add_text(item, tvb, 0, length, "TMSI: %s", tvb_bytes_to_ep_str(tvb, 0, 4));
 }
 /*
  * 8.24 Global CN-Id
@@ -2192,7 +2192,7 @@ dissect_gtpv2_g_cn_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto
 
     /* >CN-ID M INTEGER (0..4095) */
     proto_tree_add_text(tree, tvb, offset, 2, "CN-Id: %s",
-                        tvb_bytes_to_str(tvb, offset, 2));
+                        tvb_bytes_to_ep_str(tvb, offset, 2));
 }
 /*
  * 8.25 S103 PDN Data Forwarding Info (S103PDF)
@@ -2527,7 +2527,7 @@ dissect_gtpv2_tra_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, prot
      * Will be displayed if length of Trace Depth Length is > 0
      * The list will only contains UTF8String, RAW DATA
      */
-    proto_tree_add_text(tree, tvb, offset, tdl, "Trace Depth List: %s", tvb_bytes_to_str(tvb, offset, tdl));
+    proto_tree_add_text(tree, tvb, offset, tdl, "Trace Depth List: %s", tvb_bytes_to_ep_str(tvb, offset, tdl));
     offset += tdl;
 
     /* Set up subtree interfaces and put all interfaces under it */
@@ -2687,7 +2687,7 @@ dissect_gtpv2_drx_param(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
     int offset = 0;
 
     /* 36.413 : 9.2.1.17   Paging Cause, void */
-    proto_tree_add_text(tree, tvb, offset, length, "DRX parameter: %s", tvb_bytes_to_str(tvb, offset, (length )));
+    proto_tree_add_text(tree, tvb, offset, length, "DRX parameter: %s", tvb_bytes_to_ep_str(tvb, offset, (length )));
 }
 
 /*
@@ -2780,9 +2780,9 @@ dissect_gtpv2_authentication_triplets(tvbuff_t *tvb, proto_tree *tree, int offse
         */
         proto_tree_add_item(auth_tri_tree, hf_gtpv2_mm_context_rand, tvb, offset, 16, ENC_NA);
         offset += 16;
-        proto_tree_add_text(auth_tri_tree, tvb, offset, 4, "SRES': %s", tvb_bytes_to_str(tvb, offset, 4));
+        proto_tree_add_text(auth_tri_tree, tvb, offset, 4, "SRES': %s", tvb_bytes_to_ep_str(tvb, offset, 4));
         offset += 4;
-        proto_tree_add_text(auth_tri_tree, tvb, offset, 8, "Kc': %s", tvb_bytes_to_str(tvb, offset, 8));
+        proto_tree_add_text(auth_tri_tree, tvb, offset, 8, "Kc': %s", tvb_bytes_to_ep_str(tvb, offset, 8));
         offset += 8;
 
     }
@@ -2846,19 +2846,19 @@ dissect_gtpv2_authentication_quadruplets(tvbuff_t *tvb, proto_tree *tree, int of
         auth_qua_tree = proto_item_add_subtree(auth_qua_item, ett_gtpv2_mm_context_auth_qua);
 
         proto_tree_add_text(auth_qua_tree, tvb, offset, 16, "RAND: %s",
-            tvb_bytes_to_str(tvb, offset, 16));
+            tvb_bytes_to_ep_str(tvb, offset, 16));
         offset += 16;
 
         tmp = tvb_get_guint8(tvb, offset++);
 
         proto_tree_add_text(auth_qua_tree, tvb, offset, tmp, "XRES: %s",
-            tvb_bytes_to_str(tvb, offset, tmp));
+            tvb_bytes_to_ep_str(tvb, offset, tmp));
         offset += tmp;
 
         tmp = tvb_get_guint8(tvb, offset++);
 
         proto_tree_add_text(auth_qua_tree, tvb, offset, tmp, "AUTN: %s",
-            tvb_bytes_to_str(tvb, offset, tmp));
+            tvb_bytes_to_ep_str(tvb, offset, tmp));
         offset += tmp;
 
         proto_tree_add_item(tree, hf_gtpv2_mm_context_kasme, tvb, offset, 32, ENC_BIG_ENDIAN);
@@ -3018,7 +3018,7 @@ dissect_gtpv2_mm_context_gsm_t(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr
     offset += 1;
 
     /* 8 to 15 Kc */
-    proto_tree_add_text(tree, tvb, offset, 8, "Kc': %s", tvb_bytes_to_str(tvb, offset, 8));
+    proto_tree_add_text(tree, tvb, offset, 8, "Kc': %s", tvb_bytes_to_ep_str(tvb, offset, 8));
     offset += 8;
 
     /* 16 to h Authentication Triplet [0..4] */
@@ -3182,7 +3182,7 @@ dissect_gtpv2_mm_context_gsm_cq(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
     proto_tree_add_item(flag_tree, hf_gtpv2_mm_context_used_cipher, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
     /* 8 to 15 Kc */
-    proto_tree_add_text(tree, tvb, offset, 8, "Kc': %s", tvb_bytes_to_str(tvb, offset, 8));
+    proto_tree_add_text(tree, tvb, offset, 8, "Kc': %s", tvb_bytes_to_ep_str(tvb, offset, 8));
     offset += 8;
 
     /*
@@ -3456,7 +3456,7 @@ dissect_gtpv2_mm_context_eps_qq(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
     if ( nhi )
     {
         proto_tree_add_text(tree, tvb, offset, 32, "NH (Next Hop): %s",
-            tvb_bytes_to_str(tvb, offset, 32));
+            tvb_bytes_to_ep_str(tvb, offset, 32));
         offset += 32;
 
         proto_tree_add_text(tree, tvb, offset, 1, "NCC (Next Hop Chaining Count): %d",
@@ -3653,7 +3653,7 @@ dissect_gtpv2_p_tmsi(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, pr
 
     /* The TMSI consists of 4 octets. It can be coded using a full hexadecimal representation. */
     proto_tree_add_item(tree, hf_gtpv2_p_tmsi, tvb, offset, 4, ENC_BIG_ENDIAN);
-    proto_item_append_text(item, "%s", tvb_bytes_to_str(tvb, offset, 4));
+    proto_item_append_text(item, "%s", tvb_bytes_to_ep_str(tvb, offset, 4));
 }
 
 /*
@@ -3666,7 +3666,7 @@ dissect_gtpv2_p_tmsi_sig(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
 
     /* The P-TMSI Signature consists of 3 octets and may be allocated by the SGSN. */
     proto_tree_add_item(tree, hf_gtpv2_p_tmsi_sig, tvb, offset, 3, ENC_BIG_ENDIAN);
-    proto_item_append_text(item, "%s", tvb_bytes_to_str(tvb, offset, 3));
+    proto_item_append_text(item, "%s", tvb_bytes_to_ep_str(tvb, offset, 3));
 
 }
 
@@ -4099,7 +4099,7 @@ dissect_gtpv2_pkt_flow_id(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tre
     offset += 1;
 
     /* Packet Flow ID */
-    proto_tree_add_text(tree, tvb, offset, length, "Packet Flow ID: %s", tvb_bytes_to_str(tvb, offset, length-1));
+    proto_tree_add_text(tree, tvb, offset, length, "Packet Flow ID: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 
 }
 /*
@@ -4520,7 +4520,7 @@ dissect_gtpv2_mbms_session_duration(tvbuff_t *tvb, packet_info *pinfo _U_, proto
 
     offset += 3;
     if (length > 3)
-        proto_tree_add_text(tree, tvb, offset, length-3, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-3));
+        proto_tree_add_text(tree, tvb, offset, length-3, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-3));
 }
 
 /*
@@ -4568,7 +4568,7 @@ dissect_gtpv2_mbms_session_id(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
 
     offset += 1;
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /*
@@ -4580,11 +4580,11 @@ dissect_gtpv2_mbms_flow_id(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tr
     int offset = 0;
     /* Two octets OctetString. */
     proto_tree_add_item(tree, hf_gtpv2_mbms_flow_id, tvb, offset, 2, ENC_NA);
-    proto_item_append_text(item, " %s", tvb_bytes_to_str(tvb, offset, 2));
+    proto_item_append_text(item, " %s", tvb_bytes_to_ep_str(tvb, offset, 2));
 
     offset += 2;
     if (length > 2)
-        proto_tree_add_text(tree, tvb, offset, length-2, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-2));
+        proto_tree_add_text(tree, tvb, offset, length-2, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-2));
 }
 
 /*
@@ -4638,7 +4638,7 @@ dissect_gtpv2_mbms_ip_mc_dist(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
 
     offset += 1;
     if (length > offset)
-        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-offset));
+        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-offset));
 
 }
 
@@ -4662,7 +4662,7 @@ dissect_gtpv2_mbms_dist_ack(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *t
 
     offset += 1;
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /*
@@ -4739,7 +4739,7 @@ dissect_gtpv2_node_features(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *t
     proto_tree_add_item(tree, hf_gtpv2_node_features_ntsr, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset+=1;
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 8.84
@@ -4759,7 +4759,7 @@ dissect_gtpv2_mbms_time_to_data_xfer(tvbuff_t *tvb, packet_info *pinfo _U_, prot
     proto_item_append_text(item, " %u second(s)", real_secs);
     offset += 1;
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 8.85 Throttling */
@@ -4781,7 +4781,7 @@ dissect_gtpv2_arp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto
 
     offset += 1;
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 8.87 EPC Timer */
@@ -4830,7 +4830,7 @@ dissect_gtpv2_tmgi(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, prot
     offset += 3;
 
     if (length > offset)
-        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-offset));
+        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-offset));
 }
 
 /*
@@ -4849,7 +4849,7 @@ dissect_gtpv2_add_mm_cont_for_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_ms_classmark2, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    ms_cm_item = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark 2  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    ms_cm_item = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark 2  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_cm_tree = proto_item_add_subtree(ms_cm_item, ett_gtpv2_ms_mark);
     /* Mobile Station Classmark 2 */
     de_ms_cm_2(tvb, ms_cm_tree, pinfo, offset, elm_len, NULL, 0);
@@ -4859,7 +4859,7 @@ dissect_gtpv2_add_mm_cont_for_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_ms_classmark3, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    ms_cm_item = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark3  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    ms_cm_item = proto_tree_add_text(tree, tvb, offset, elm_len, "Mobile Station Classmark3  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_cm_tree = proto_item_add_subtree(ms_cm_item, ett_gtpv2_ms_mark);
     /* Mobile Station Classmark 3 */
     de_ms_cm_3(tvb, ms_cm_tree, pinfo, offset, elm_len, NULL, 0);
@@ -4869,14 +4869,14 @@ dissect_gtpv2_add_mm_cont_for_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto
     elm_len = tvb_get_guint8(tvb, offset);
     proto_tree_add_item(tree, hf_gtpv2_len_supp_codec_list, tvb, offset, 1, ENC_BIG_ENDIAN);
     offset += 1;
-    ms_cm_item = proto_tree_add_text(tree, tvb, offset, elm_len, "Supported Codec List  %s", tvb_bytes_to_str(tvb, offset, elm_len));
+    ms_cm_item = proto_tree_add_text(tree, tvb, offset, elm_len, "Supported Codec List  %s", tvb_bytes_to_ep_str(tvb, offset, elm_len));
     ms_cm_tree = proto_item_add_subtree(ms_cm_item, ett_gtpv2_supp_codec_list);
     /* Supported Codec List */
     de_sup_codec_list(tvb, ms_cm_tree, pinfo, offset, elm_len, NULL, 0);
     offset += elm_len;
 
     if (length > offset)
-        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-offset));
+        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-offset));
 }
 
 /* 8.91 Additional flags for SRVCC */
@@ -4890,7 +4890,7 @@ dissect_gtpv2_add_flags_for_srvcc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
     offset += 1;
 
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 8.92 Max MBR/APN-AMBR (MMBR) */
@@ -4953,7 +4953,7 @@ dissect_gtpv2_abs_mbms_data_tf_time(tvbuff_t *tvb, packet_info *pinfo _U_, proto
 
     offset += 8;
     if (length > offset)
-        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-offset));
+        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-offset));
 }
 
 /* 8.96 H(e)NB Information Reporting */
@@ -4971,7 +4971,7 @@ dissect_gtpv2_henb_info_report(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
     offset += 1;
 
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 8.97 IPv4 Configuration Parameters (IP4CP) */
@@ -4986,7 +4986,7 @@ dissect_gtpv2_ip4cp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, pro
     offset += 4;
 
     if (length > offset)
-        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-offset));
+        proto_tree_add_text(tree, tvb, offset, length-offset, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-offset));
 }
 
 /* 8.98 Change to Report Flags */
@@ -5000,7 +5000,7 @@ dissect_gtpv2_change_report_flags(tvbuff_t *tvb, packet_info *pinfo _U_, proto_t
     offset += 1;
 
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 /* 8.99 Action Indication */
@@ -5026,7 +5026,7 @@ dissect_gtpv2_action_indication(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tre
     offset += 1;
 
     if (length > 1)
-        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_str(tvb, offset, length-1));
+        proto_tree_add_text(tree, tvb, offset, length-1, "Spare: %s", tvb_bytes_to_ep_str(tvb, offset, length-1));
 }
 
 typedef struct _gtpv2_ie {
index 09dc18dfab4474a7072d080814eae7ccf8006599..1aed149fb26d7fea39b5a904a5de92b1910945f2 100644 (file)
@@ -178,7 +178,7 @@ dissect_gvcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
       wmem_strbuf_append_printf(info, "%d.%d.%d.%d to %s",
                                 tvb_get_guint8(tvb, 28), tvb_get_guint8(tvb, 29),
                                 tvb_get_guint8(tvb, 30), tvb_get_guint8(tvb, 31),
-                                tvb_bytes_to_str_punct(tvb, 10, 6, ':'));
+                                tvb_bytes_to_ep_str_punct(tvb, 10, 6, ':'));
     }
     break;
   case 0x80: /* Register Read Request */
index 4fcc3de3a58bf02c9e45ece1814b2ddb0532c3dc..6306ed607b89291138680c495ac1c81dfa203025 100644 (file)
@@ -2234,7 +2234,7 @@ dissect_h248_T_terminationId(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int o
 
                if (curr_info.term->len) {
                        curr_info.term->buffer = (guint8 *)tvb_memdup(wmem_packet_scope(),new_tvb,0,curr_info.term->len);
-                       curr_info.term->str = bytes_to_str(curr_info.term->buffer,curr_info.term->len);
+                       curr_info.term->str = bytes_to_ep_str(curr_info.term->buffer,curr_info.term->len);
                }
 
                curr_info.term = gcp_cmd_add_term(curr_info.msg, curr_info.trx, curr_info.cmd, curr_info.term, wild_term, keep_persistent_data);
@@ -5353,7 +5353,7 @@ dissect_h248_ValueV1(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U
                                /* not ascii or NULL character so do string as hex string */
                                proto_tree_add_text(tree, tvb, offset, len,"%s: 0x%s", 
                                        (proto_registrar_get_nth(hf_index))->name,
-                                       tvb_bytes_to_str(tvb, 0, len));
+                                       tvb_bytes_to_ep_str(tvb, 0, len));
                                return len;
                        };
                };
index a4fc5ae646e35a5c007e515c36c956b119a1721a..aa619a2d91ed806cc0892bca0ba2573c9a0f73bf 100644 (file)
@@ -768,7 +768,7 @@ static void dissect_h248_annexc_BIR(proto_tree* tree,
        dissect_ber_octet_string(implicit_p ? *((gboolean*)implicit_p) : FALSE, &asn1_ctx, tree, tvb, 0, hfid, &new_tvb);
 
        if ( new_tvb && h248_info->term && ! h248_info->term->bir ) {
-               h248_info->term->bir = wmem_strdup(wmem_file_scope(), tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb)));
+               h248_info->term->bir = wmem_strdup(wmem_file_scope(), tvb_bytes_to_ep_str(new_tvb,0,tvb_length(new_tvb)));
        }
 }
 
@@ -786,7 +786,7 @@ static void dissect_h248_annexc_NSAP(proto_tree* tree,
        if (new_tvb) {
                dissect_nsap(new_tvb, 0,tvb_length(new_tvb), tree);
                if ( h248_info->term && ! h248_info->term->nsap) {
-                       h248_info->term->nsap = wmem_strdup(wmem_file_scope(), tvb_bytes_to_str(new_tvb,0,tvb_length(new_tvb)));
+                       h248_info->term->nsap = wmem_strdup(wmem_file_scope(), tvb_bytes_to_ep_str(new_tvb,0,tvb_length(new_tvb)));
                }
        }
 }
index 37192761a0aec2b00819f44a80d847e0378224ec..3b2ce7c9a45875187945228c8a7ca571485f71e6 100644 (file)
@@ -8673,7 +8673,7 @@ dissect_vendor_ie_aruba(proto_item *item, proto_tree *ietree,
   default:
     proto_tree_add_item(ietree, hf_ieee80211_vs_aruba_data, tvb, offset,
       tag_len, ENC_NA);
-    proto_item_append_text(item, " (Data: %s)", tvb_bytes_to_str(tvb, offset, tag_len));
+    proto_item_append_text(item, " (Data: %s)", tvb_bytes_to_ep_str(tvb, offset, tag_len));
     break;
   }
 }
index afc796152d0181423226b2371e16045524cbf08a..025a14b1762a7e500785d7778f1619ac6c0b9bb0 100644 (file)
@@ -108,12 +108,12 @@ dissect_ieee802a(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        pid = tvb_get_ntohs(tvb, 3);
 
        col_add_fstr(pinfo->cinfo, COL_INFO, "OUI %s (%s), PID 0x%04X",
-           bytes_to_str_punct(oui, 3, ':'),
+           bytes_to_ep_str_punct(oui, 3, ':'),
            manuf ? manuf : "Unknown", pid);
 
        proto_tree_add_uint_format_value(ieee802a_tree, hf_ieee802a_oui,
            tvb, 0, 3, oui32, "%s (%s)",
-           bytes_to_str_punct(oui, 3, ':'), manuf ? manuf : "Unknown");
+           bytes_to_ep_str_punct(oui, 3, ':'), manuf ? manuf : "Unknown");
 
        /*
         * Do we have information for this OUI?
index 6084b194aeb4915a97c1088cdd9488aa0bba2d40..40ece5f290a948dfe2c4c7694fae231427e01d48 100644 (file)
@@ -217,13 +217,13 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, int off
            /* Challenge field is the results of MD5 calculation */
            proto_tree_add_text(tree, tvb, offset, msize,
                                "Result of MD5 calculation: 0x%s",
-                               bytes_to_str(message, msize));
+                               bytes_to_ep_str(message, msize));
            break;
        case IGAP_SUBTYPE_CHALLENGE:
            /* Challenge field is the challenge value */
            proto_tree_add_text(tree, tvb, offset, msize,
                                "Challenge: 0x%s",
-                               bytes_to_str(message, msize));
+                               bytes_to_ep_str(message, msize));
            break;
        case IGAP_SUBTYPE_AUTH_MESSAGE:
            /* Challenge field indicates the result of the authenticaion */
index 575b8766cf00b23dd6940fcaa0e5f941c5c9dbe3..d57502063bab3538d07680c8ed17db511b7b209d 100644 (file)
@@ -625,7 +625,7 @@ add_octetstring_tree(proto_tree *tree, tvbuff_t *tvb, int offset,
                              1 + 2 + name_length + 2 + value_length,
                              "%s: %s",
                              tvb_format_text(tvb, offset + 1 + 2, name_length),
-                             tvb_bytes_to_str(tvb, offset + 1 + 2 + name_length + 2, value_length));
+                             tvb_bytes_to_ep_str(tvb, offset + 1 + 2 + name_length + 2, value_length));
     return proto_item_add_subtree(ti, ett_ipp_attr);
 }
 
@@ -636,7 +636,7 @@ add_octetstring_value(const gchar *tag_desc, proto_tree *tree, tvbuff_t *tvb,
     offset = add_value_head(tag_desc, tree, tvb, offset, name_length,
                             value_length, NULL);
     proto_tree_add_text(tree, tvb, offset, value_length,
-                        "Value: %s", tvb_bytes_to_str(tvb, offset, value_length));
+                        "Value: %s", tvb_bytes_to_ep_str(tvb, offset, value_length));
 }
 
 static proto_tree *
index 89a30c77b01c7129b1e0fd108d72744dc4181a41..f13aa764dd81a460453f8c19712d53c2997a7aff 100644 (file)
@@ -930,10 +930,10 @@ dissect_serialization(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        }
 
        col_add_fstr(pinfo->cinfo, COL_INFO, "Serial number %s",
-                   tvb_bytes_to_str(tvb, 0, 6));
+                   tvb_bytes_to_ep_str(tvb, 0, 6));
 
        proto_tree_add_text(ser_tree, tvb, 0, 6,
-                     "Serial number: %s", tvb_bytes_to_str(tvb, 0, 6));
+                     "Serial number: %s", tvb_bytes_to_ep_str(tvb, 0, 6));
 }
 
 /*
index 3a853b43c302da8a403384129773b35621f9dd08..e3bda339333931c9e440796793074e8748106f2c 100644 (file)
@@ -2976,7 +2976,7 @@ dissect_sa(tvbuff_t *tvb, int offset, int length, proto_tree *tree, int isakmp_v
         proto_tree_add_bytes_format_value(tree, hf_isakmp_sa_situation, tvb, offset, length,
                                     NULL,
                                     "%s (length is %u, should be >= 4)",
-                                    tvb_bytes_to_str(tvb, offset, length), length);
+                                    tvb_bytes_to_ep_str(tvb, offset, length), length);
         return;
       }
       sti = proto_tree_add_item(tree, hf_isakmp_sa_situation, tvb, offset, 4, ENC_NA);
@@ -3720,7 +3720,7 @@ dissect_id(tvbuff_t *tvb, int offset, int length, proto_tree *tree, int isakmp_v
       dissect_x509if_Name(FALSE, tvb, offset, &asn1_ctx, tree, hf_isakmp_id_data_cert);
       break;
     default:
-      proto_item_append_text(idit, "%s", tvb_bytes_to_str(tvb,offset,length));
+      proto_item_append_text(idit, "%s", tvb_bytes_to_ep_str(tvb,offset,length));
       break;
   }
 }
@@ -4696,7 +4696,7 @@ dissect_enc(tvbuff_t *tvb,
         if (tvb_memeql(tvb, offset, md, icd_len) == 0) {
           proto_item_append_text(icd_item, "[correct]");
         } else {
-          proto_item_append_text(icd_item, "[incorrect, should be %s]", bytes_to_str(md, icd_len));
+          proto_item_append_text(icd_item, "[incorrect, should be %s]", bytes_to_ep_str(md, icd_len));
           expert_add_info(pinfo, icd_item, &ei_isakmp_ikev2_integrity_checksum);
         }
         gcry_md_close(md_hd);
index f5c3ab9b291165ef8192fb12d87f906cc017d4e6..7c4954eaa394de0493168581e1cf947005c05b36 100644 (file)
@@ -570,7 +570,7 @@ static offset_struct* dissect_auheader( tvbuff_t *tvb, offset_struct *poffset, p
                ismacryp_item = proto_tree_add_item(ismacryp_header_tree, hf_ismacryp_iv, tvb, poffset->offset_bytes, iv_length, ENC_NA);
                proto_item_append_text(ismacryp_item, ": Length=%d bytes",iv_length); /* add IV info */
                col_append_fstr( pinfo->cinfo, COL_INFO,
-                       ", IV=0x%s", tvb_bytes_to_str_punct(tvb, poffset->offset_bytes, iv_length,' '));
+                       ", IV=0x%s", tvb_bytes_to_ep_str_punct(tvb, poffset->offset_bytes, iv_length,' '));
 
                poffset->offset_bytes+=iv_length; /* add IV length to offset_bytes */
        }
@@ -581,7 +581,7 @@ static offset_struct* dissect_auheader( tvbuff_t *tvb, offset_struct *poffset, p
                                                    tvb, poffset->offset_bytes, delta_iv_length, ENC_NA);
                proto_item_append_text(ismacryp_item, ": Length=%d bytes",delta_iv_length); /* add delta IV info */
                col_append_fstr( pinfo->cinfo, COL_INFO,
-                       ", Delta IV=0x%s", tvb_bytes_to_str_punct(tvb, poffset->offset_bytes, delta_iv_length,' '));
+                       ", Delta IV=0x%s", tvb_bytes_to_ep_str_punct(tvb, poffset->offset_bytes, delta_iv_length,' '));
                poffset->offset_bytes+=iv_length; /* add IV length to offset_bytes */
        }
        /* Key Indicator */
@@ -592,7 +592,7 @@ static offset_struct* dissect_auheader( tvbuff_t *tvb, offset_struct *poffset, p
                                                    tvb, poffset->offset_bytes, key_indicator_length, ENC_NA);
                proto_item_append_text(ismacryp_item,": Length=%d bytes",key_indicator_length); /* add KI info */
                col_append_fstr( pinfo->cinfo, COL_INFO,
-                                        ", KI=0x%s", tvb_bytes_to_str_punct(tvb, poffset->offset_bytes, key_indicator_length,' '));
+                                        ", KI=0x%s", tvb_bytes_to_ep_str_punct(tvb, poffset->offset_bytes, key_indicator_length,' '));
                poffset->offset_bytes+=key_indicator_length; /* add KI length to offset_bytes */
        }
        /* AU size */
index 0b84127e0a1c7f3e03fb59aafe377850d2f7da01..3e5efd23b268d0ae8ca122303c46ca57273980a6 100644 (file)
@@ -3800,7 +3800,7 @@ dissect_ansi_isup_cause_indicators_parameter(tvbuff_t *parameter_tvb, proto_tree
       }
       proto_tree_add_text(parameter_tree, parameter_tvb, offset,
                           length, "Diagnostic: %s",
-                          tvb_bytes_to_str(parameter_tvb, offset, length));
+                          tvb_bytes_to_ep_str(parameter_tvb, offset, length));
       return;
     case 2:
       /*ANSI*/
@@ -3823,7 +3823,7 @@ dissect_ansi_isup_cause_indicators_parameter(tvbuff_t *parameter_tvb, proto_tree
       }
       proto_tree_add_text(parameter_tree, parameter_tvb, offset,
                           length, "Diagnostic: %s",
-                          tvb_bytes_to_str(parameter_tvb, offset, length));
+                          tvb_bytes_to_ep_str(parameter_tvb, offset, length));
       return;
     default:
       proto_tree_add_item(parameter_tree, hf_ansi_isup_coding_standard, parameter_tvb, offset, 1, ENC_BIG_ENDIAN);
@@ -4092,7 +4092,7 @@ dissect_nsap(tvbuff_t *parameter_tvb, gint offset, gint len, proto_tree *paramet
   switch (afi) {
     case 0x35:  /* IANA ICP Binary fortmat*/
       proto_tree_add_text(parameter_tree, parameter_tvb, offset, 3,
-                          "IDP = %s", tvb_bytes_to_str(parameter_tvb, offset, 3));
+                          "IDP = %s", tvb_bytes_to_ep_str(parameter_tvb, offset, 3));
 
       proto_tree_add_uint(parameter_tree, hf_afi, parameter_tvb, offset, 1, afi);
       offset = offset + 1;
@@ -4100,7 +4100,7 @@ dissect_nsap(tvbuff_t *parameter_tvb, gint offset, gint len, proto_tree *paramet
       proto_tree_add_uint(parameter_tree, hf_iana_icp, parameter_tvb, offset, 1, icp);
       if (icp == 0) { /* IPv6 addr */
         proto_tree_add_text(parameter_tree, parameter_tvb, offset + 2 , 17,
-                            "DSP = %s", tvb_bytes_to_str(parameter_tvb, offset + 2, 17));
+                            "DSP = %s", tvb_bytes_to_ep_str(parameter_tvb, offset + 2, 17));
         proto_tree_add_item(parameter_tree, hf_nsap_ipv6_addr, parameter_tvb, offset + 2,
                             16, ENC_NA);
 
@@ -4108,7 +4108,7 @@ dissect_nsap(tvbuff_t *parameter_tvb, gint offset, gint len, proto_tree *paramet
       else { /* IPv4 addr */
         /* XXX - this is really only for ICP 1 */
         proto_tree_add_text(parameter_tree, parameter_tvb, offset + 2, 17,
-                            "DSP = %s", tvb_bytes_to_str(parameter_tvb, offset + 2, 17));
+                            "DSP = %s", tvb_bytes_to_ep_str(parameter_tvb, offset + 2, 17));
         proto_tree_add_item(parameter_tree, hf_nsap_ipv4_addr, parameter_tvb, offset + 2, 4, ENC_BIG_ENDIAN);
       }
 
@@ -4116,12 +4116,12 @@ dissect_nsap(tvbuff_t *parameter_tvb, gint offset, gint len, proto_tree *paramet
     case 0x45:  /* E.164 ATM format */
     case 0xC3:  /* E.164 ATM group format */
       proto_tree_add_text(parameter_tree, parameter_tvb, offset, 9,
-                          "IDP = %s", tvb_bytes_to_str(parameter_tvb, offset, 9));
+                          "IDP = %s", tvb_bytes_to_ep_str(parameter_tvb, offset, 9));
 
       proto_tree_add_uint(parameter_tree, hf_afi, parameter_tvb, offset, 1, afi);
 
       proto_tree_add_text(parameter_tree, parameter_tvb, offset + 1, 8,
-                          "IDI = %s", tvb_bytes_to_str(parameter_tvb, offset + 1, 8));
+                          "IDI = %s", tvb_bytes_to_ep_str(parameter_tvb, offset + 1, 8));
       offset = offset +1;
       /* Dissect country code */
       cc_offset = offset;
@@ -4847,7 +4847,7 @@ dissect_bat_ase_Encapsulated_Application_Information(tvbuff_t *parameter_tvb, pa
 
 */
           proto_tree_add_text(bat_ase_element_tree, parameter_tvb, offset, tempdata , "Network ID: %s",
-                              tvb_bytes_to_str(parameter_tvb, offset, tempdata));
+                              tvb_bytes_to_ep_str(parameter_tvb, offset, tempdata));
           offset = offset + tempdata;
         } /* end if */
 
index 1be20abfd6c3279f10b9abebd766c809b015e182..e6c2a497b6ca37353719065b420643bfb28739aa 100644 (file)
@@ -244,7 +244,7 @@ static int dissect_j1939(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
     col_add_fstr(pinfo->cinfo, COL_INFO, "PGN: %d", pgn);
 
     /* For now just include raw bytes */
-    col_append_fstr(pinfo->cinfo, COL_INFO, "   %s", tvb_bytes_to_str_punct(tvb, 0, data_length, ' '));
+    col_append_fstr(pinfo->cinfo, COL_INFO, "   %s", tvb_bytes_to_ep_str_punct(tvb, 0, data_length, ' '));
 
     ti = proto_tree_add_text(j1939_tree, tvb, 0, -1, "Message");
     msg_tree = proto_item_add_subtree(ti, ett_j1939_message);
index 0f01d791f4cea659623fc94fc80e5f1c4fcec942..9647e8263fc28a4c17c8e899ea31d20890f4425c 100644 (file)
@@ -766,7 +766,7 @@ dissect_lldp_chassis_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gui
                        }
                        break;
                default:
-                       strPtr = tvb_bytes_to_str(tvb, (offset+4), (tempLen-2));
+                       strPtr = tvb_bytes_to_ep_str(tvb, (offset+4), (tempLen-2));
                        break;
                }
                break;
@@ -794,7 +794,7 @@ dissect_lldp_chassis_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gui
                        break;
                }
 
-               strPtr = tvb_bytes_to_str(tvb, (offset+3), (tempLen-1));
+               strPtr = tvb_bytes_to_ep_str(tvb, (offset+3), (tempLen-1));
                break;
        }
        default:        /* Reserved types */
@@ -939,7 +939,7 @@ dissect_lldp_port_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint3
                        }
                        break;
                default:
-                       strPtr = tvb_bytes_to_str(tvb, (offset+4), (tempLen-2));
+                       strPtr = tvb_bytes_to_ep_str(tvb, (offset+4), (tempLen-2));
                        break;
                }
                break;
@@ -1392,7 +1392,7 @@ dissect_ieee_802_1_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
                {
                        if (tree)
                                proto_tree_add_text(tree, tvb, tempOffset, tempByte, "Protocol Identity: %s",
-                                       tvb_bytes_to_str(tvb, tempOffset, tempByte));
+                                       tvb_bytes_to_ep_str(tvb, tempOffset, tempByte));
                }
 
                break;
index 68119e0b07d87e44f754ed879632dade157b11a2..85c31afe59acce9f1ff53183a9f335f92ae80ccf 100644 (file)
@@ -1999,7 +1999,7 @@ dissect_fmip6_opt_lla(const mip6_opt *optp _U_, tvbuff_t *tvb, int offset,
             len -= 1;
             proto_tree_add_text(field_tree, tvb,
                     p, len, "Link-layer address: %s",
-                    tvb_bytes_to_str_punct(tvb, p, len, ':'));
+                    tvb_bytes_to_ep_str_punct(tvb, p, len, ':'));
         }
     }
 }
index 3865612f91bfd9d21dfb5969be5db69527dd76be..26035cee81dd0b9118fdd687775828e5b4cbe46e 100644 (file)
@@ -803,7 +803,7 @@ dissect_mpls_echo_tlv_fec(tvbuff_t *tvb, packet_info *pinfo, guint offset, proto
                 proto_tree_add_item(tlv_fec_tree, hf_mpls_echo_tlv_fec_rsvp_p2mp_ip_tunnel_id,
                                     tvb, offset + 22, 2, FALSE);
                 proto_tree_add_text(tlv_fec_tree, tvb, offset + 24, 16, "Extended Tunnel ID: 0x%s (%s)",
-                                    tvb_bytes_to_str(tvb, offset + 24, 16),
+                                    tvb_bytes_to_ep_str(tvb, offset + 24, 16),
                                     tvb_ip6_to_str(tvb, offset + 24));
                 hidden_item = proto_tree_add_item(tlv_fec_tree, hf_mpls_echo_tlv_fec_rsvp_p2mp_ipv6_ext_tunnel_id,
                                                   tvb, offset + 24, 16, FALSE);
index 483eec5044ef774eaa3d50e43ca7cc177e61c812..ee5ae7986ed209c9c663b5b6d1af134bedb4bb66 100644 (file)
@@ -2784,7 +2784,7 @@ build_expert_data(proto_tree *ncp_tree, const char *hf_name, char *buffer,
                 }
             case 21:
             case 22:             /* Bytes */
-                g_snprintf(buffer, (gulong) buffer_size, "%s", bytes_to_str(get_finfo_value_string(PTREE_FINFO(tree_pointer)), get_finfo_length(PTREE_FINFO(tree_pointer))));
+                g_snprintf(buffer, (gulong) buffer_size, "%s", bytes_to_ep_str(get_finfo_value_string(PTREE_FINFO(tree_pointer)), get_finfo_length(PTREE_FINFO(tree_pointer))));
                 break;
             default:             /* Dont currently handle. Only need string, integers, and bytes */
                 g_snprintf(buffer, (gulong) buffer_size, "Unsupported Expert Type");
@@ -7725,7 +7725,7 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
                 if (info_type != 0) {    /* Is this  a string or not? */
 
                     if (info_type == 1) {   /* Is this bytes? */
-                        byte_string = bytes_to_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
+                        byte_string = bytes_to_ep_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
                         col_append_fstr(pinfo->cinfo, COL_INFO,
                                         (const gchar*) ncp_rec->req_info_str->first_string,
                                         byte_string);
@@ -7762,7 +7762,7 @@ dissect_ncp_request(tvbuff_t *tvb, packet_info *pinfo,
                     if (info_type != 0) {    /* Is this  a string or not? */
                         if (info_type == 1)
                         {   /* Is this bytes? */
-                            byte_string = bytes_to_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
+                            byte_string = bytes_to_ep_str(get_finfo_value_string(finfo), get_finfo_length(finfo));
                             col_append_fstr(pinfo->cinfo, COL_INFO,
                                             (const gchar*) ncp_rec->req_info_str->repeat_string,
                                             byte_string);
index bb62df7cd898aa99eb5511694ce6c2b425c81b80..6ea7a273410556a09a05f57161739b638592d103 100644 (file)
@@ -5106,14 +5106,14 @@ dissect_v9_v10_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdutree,
                                                        tvb, offset, length, NULL,
                                                        "Type %u: Value (hex bytes): %s",
                                                        masked_type,
-                                                       tvb_bytes_to_str_punct(tvb, offset, length, ' '));
+                                                       tvb_bytes_to_ep_str_punct(tvb, offset, length, ' '));
             } else { /* v10 PEN */
                 ti = proto_tree_add_bytes_format_value(pdutree, hf_ipfix_enterprise_private_entry,
                                                        tvb, offset, length, NULL,
                                                        "(%s) Type %u: Value (hex bytes): %s",
                                                        pen_str ? pen_str : "(null)",
                                                        masked_type,
-                                                       tvb_bytes_to_str_punct(tvb, offset, length, ' '));
+                                                       tvb_bytes_to_ep_str_punct(tvb, offset, length, ' '));
             }
             break;
 
index 4f42ca27d882becb282880aede0c9b9818201216..eed43105f44068b50497c01666bd6d04642d0227 100644 (file)
@@ -1589,7 +1589,7 @@ dissect_fhandle_data_LINUX_NFSD_LE(tvbuff_t* tvb, packet_info *pinfo _U_, proto_
                        hash_item = proto_tree_add_text(tree, tvb, offset+4,
                                                        hashlen + 1,
                                                        "hash path: %s",
-                                                       tvb_bytes_to_str(tvb, offset+5, hashlen));
+                                                       tvb_bytes_to_ep_str(tvb, offset+5, hashlen));
                        hash_tree = proto_item_add_subtree(hash_item,
                                                           ett_nfs_fh_hp);
                        proto_tree_add_uint(hash_tree,
@@ -1598,7 +1598,7 @@ dissect_fhandle_data_LINUX_NFSD_LE(tvbuff_t* tvb, packet_info *pinfo _U_, proto_
                        proto_tree_add_text(hash_tree, tvb, offset+5,
                                            hashlen,
                                            "key: %s",
-                                           tvb_bytes_to_str(tvb, offset+5, hashlen));
+                                           tvb_bytes_to_ep_str(tvb, offset+5, hashlen));
                }
        }
 }
index 2d63946be1a30612291044466fd072f5d0710faa..ae7a6c1bdb86eec6630675da28a2e1344796b0a4 100644 (file)
@@ -369,7 +369,7 @@ static void dissect_nhrp_hdr(tvbuff_t     *tvb,
          */
         proto_tree_add_text(nhrp_tree, tvb, offset, 5,
                         "Protocol Type (long form): %s",
-                        tvb_bytes_to_str(tvb, offset, 5));
+                        tvb_bytes_to_ep_str(tvb, offset, 5));
         offset += 5;
     }
 
@@ -538,14 +538,14 @@ static void dissect_cie_list(tvbuff_t    *tvb,
                 else {
                     proto_tree_add_text(cie_tree, tvb, offset, cli_addr_len,
                         "Client NBMA Address: %s",
-                        tvb_bytes_to_str(tvb, offset, cli_addr_len));
+                        tvb_bytes_to_ep_str(tvb, offset, cli_addr_len));
                 }
                 break;
 
             default:
                 proto_tree_add_text(cie_tree, tvb, offset, cli_addr_len,
                     "Client NBMA Address: %s",
-                    tvb_bytes_to_str(tvb, offset, cli_addr_len));
+                    tvb_bytes_to_ep_str(tvb, offset, cli_addr_len));
                 break;
             }
             offset += cli_addr_len;
@@ -554,7 +554,7 @@ static void dissect_cie_list(tvbuff_t    *tvb,
         if (cli_saddr_len) {
             proto_tree_add_text(cie_tree, tvb, offset, cli_saddr_len,
                                 "Client NBMA Sub Address: %s",
-                                tvb_bytes_to_str(tvb, offset, cli_saddr_len));
+                                tvb_bytes_to_ep_str(tvb, offset, cli_saddr_len));
         }
 
         if (cli_prot_len) {
@@ -563,7 +563,7 @@ static void dissect_cie_list(tvbuff_t    *tvb,
             else {
                 proto_tree_add_text(cie_tree, tvb, offset, cli_prot_len,
                                     "Client Protocol Address: %s",
-                                    tvb_bytes_to_str(tvb, offset, cli_prot_len));
+                                    tvb_bytes_to_ep_str(tvb, offset, cli_prot_len));
             }
             offset += cli_prot_len;
         }
@@ -684,14 +684,14 @@ static void dissect_nhrp_mand(tvbuff_t    *tvb,
             else {
                 proto_tree_add_text(nhrp_tree, tvb, offset, shl,
                     "Source NBMA Address: %s",
-                    tvb_bytes_to_str(tvb, offset, shl));
+                    tvb_bytes_to_ep_str(tvb, offset, shl));
             }
             break;
 
         default:
             proto_tree_add_text(nhrp_tree, tvb, offset, shl,
                 "Source NBMA Address: %s",
-                tvb_bytes_to_str(tvb, offset, shl));
+                tvb_bytes_to_ep_str(tvb, offset, shl));
             break;
         }
         offset += shl;
@@ -701,7 +701,7 @@ static void dissect_nhrp_mand(tvbuff_t    *tvb,
     if (ssl) {
         proto_tree_add_text(nhrp_tree, tvb, offset, ssl,
                             "Source NBMA Sub Address: %s",
-                            tvb_bytes_to_str(tvb, offset, ssl));
+                            tvb_bytes_to_ep_str(tvb, offset, ssl));
         offset += ssl;
     }
 
@@ -712,7 +712,7 @@ static void dissect_nhrp_mand(tvbuff_t    *tvb,
     else if (*srcLen) {
         proto_tree_add_text(nhrp_tree, tvb, offset, *srcLen,
                             "Source Protocol Address: %s",
-                            tvb_bytes_to_str(tvb, offset, *srcLen));
+                            tvb_bytes_to_ep_str(tvb, offset, *srcLen));
         offset += *srcLen;
     }
 
@@ -723,7 +723,7 @@ static void dissect_nhrp_mand(tvbuff_t    *tvb,
     else if (dstLen) {
         proto_tree_add_text(nhrp_tree, tvb, offset, dstLen,
                             "Destination Protocol Address: %s",
-                            tvb_bytes_to_str(tvb, offset, dstLen));
+                            tvb_bytes_to_ep_str(tvb, offset, dstLen));
         offset += dstLen;
     }
 
@@ -903,7 +903,7 @@ static void dissect_nhrp_ext(tvbuff_t    *tvb,
                 if (len < (4 + srcLen)) {
                     ti = proto_tree_add_text(nhrp_tree, tvb, offset, len,
                         "Malformed Extension: %s",
-                        tvb_bytes_to_str(tvb, offset, len));
+                        tvb_bytes_to_ep_str(tvb, offset, len));
                     expert_add_info_format(pinfo, ti, &ei_nhrp_ext_malformed, "Incomplete Authentication Extension");
                 }
                 else {
@@ -912,7 +912,7 @@ static void dissect_nhrp_ext(tvbuff_t    *tvb,
 
                     auth_item = proto_tree_add_text(nhrp_tree, tvb, offset, len,
                         "Extension Data: SPI=%u: Data=%s", tvb_get_ntohs(tvb, offset + 2),
-                        tvb_bytes_to_str(tvb, offset + 4, len - 4));
+                        tvb_bytes_to_ep_str(tvb, offset + 4, len - 4));
                     auth_tree = proto_item_add_subtree(auth_item, ett_nhrp_auth_ext);
                     proto_tree_add_item(auth_tree, hf_nhrp_auth_ext_reserved, tvb, offset, 2, ENC_BIG_ENDIAN);
                     proto_tree_add_item(auth_tree, hf_nhrp_auth_ext_spi, tvb, offset + 2, 2, ENC_BIG_ENDIAN);
@@ -921,11 +921,11 @@ static void dissect_nhrp_ext(tvbuff_t    *tvb,
                     else if (srcLen) {
                         proto_tree_add_text(auth_tree, tvb, offset + 4, srcLen,
                             "Source Address: %s",
-                            tvb_bytes_to_str(tvb, offset + 4, srcLen));
+                            tvb_bytes_to_ep_str(tvb, offset + 4, srcLen));
                     }
                     if (len > (4 + srcLen)) {
                         proto_tree_add_text(auth_tree, tvb, offset + 4 + srcLen, len - (4 + srcLen),
-                            "Data: %s", tvb_bytes_to_str(tvb, offset + 4 + srcLen, len - (4 + srcLen)));
+                            "Data: %s", tvb_bytes_to_ep_str(tvb, offset + 4 + srcLen, len - (4 + srcLen)));
                     }
                 }
                 break;
@@ -934,7 +934,7 @@ static void dissect_nhrp_ext(tvbuff_t    *tvb,
                 if (len < 3) {
                     ti = proto_tree_add_text(nhrp_tree, tvb, offset, len,
                         "Malformed Extension: %s",
-                        tvb_bytes_to_str(tvb, offset, len));
+                        tvb_bytes_to_ep_str(tvb, offset, len));
                     expert_add_info_format(pinfo, ti, &ei_nhrp_ext_malformed, "Incomplete Vendor-Private Extension");
                 }
                 else {
@@ -945,13 +945,13 @@ static void dissect_nhrp_ext(tvbuff_t    *tvb,
                     tvb_memcpy(tvb, manuf, offset, 3);
                     vendor_item = proto_tree_add_text(nhrp_tree, tvb, offset, len,
                         "Extension Data: Vendor ID=%s, Data=%s", get_manuf_name(manuf),
-                        tvb_bytes_to_str(tvb, offset + 3, len - 3));
+                        tvb_bytes_to_ep_str(tvb, offset + 3, len - 3));
                     vendor_tree = proto_item_add_subtree(vendor_item, ett_nhrp_vendor_ext);
                     proto_tree_add_bytes_format_value(vendor_tree, hf_nhrp_vendor_ext_id, tvb,
                         offset, 3, manuf, "%s", get_manuf_name(manuf));
                     if (len > 3) {
                         proto_tree_add_text(vendor_tree, tvb, offset + 3, len - 3,
-                            "Data: %s", tvb_bytes_to_str(tvb, offset + 3, len - 3));
+                            "Data: %s", tvb_bytes_to_ep_str(tvb, offset + 3, len - 3));
                     }
                 }
                 break;
index d98d2f668310308c9e04f7bc663a158e24291b31..3469628a78669cba75fd72916f3f666ac7836ceb 100644 (file)
@@ -1134,7 +1134,7 @@ static void decode_evt(proto_tree  *tree,
                 length,
                 "Key Name: %s (UTF-8 Value: %s, Unicode Value: 0x%" G_GINT64_MODIFIER "x)",
                 key_name,
-                tvb_bytes_to_str(tvb, offset, length),
+                tvb_bytes_to_ep_str(tvb, offset, length),
                 unicode_value);
             break;
         }
index e6d0f4137f894e333cfdcf125813cb81b1fc2d7a..f84a71b90af664c3b6c84957addaadc7a059b2de 100644 (file)
@@ -1562,7 +1562,7 @@ dissect_opensafety_snmt_message(tvbuff_t *message_tvb, packet_info *pinfo, proto
             if ( global_scm_udid_autoset == TRUE )
             {
                 tempString = (char *)wmem_alloc0(wmem_packet_scope(), 128 * sizeof(char));
-                g_snprintf ( tempString, 18, "%s", tvb_bytes_to_str_punct(message_tvb, OSS_FRAME_POS_DATA + frameStart1 + 1, 6, ':' ) );
+                g_snprintf ( tempString, 18, "%s", tvb_bytes_to_ep_str_punct(message_tvb, OSS_FRAME_POS_DATA + frameStart1 + 1, 6, ':' ) );
                 if ( memcmp ( global_scm_udid, tempString, 17 ) != 0 )
                 {
                     local_scm_udid = (char *)wmem_alloc0(wmem_file_scope(), 18 * sizeof(char));
@@ -1604,7 +1604,7 @@ dissect_opensafety_snmt_message(tvbuff_t *message_tvb, packet_info *pinfo, proto
             if ( global_scm_udid_autoset == TRUE )
             {
                 tempString = (char *)wmem_alloc0(wmem_packet_scope(), 18 * sizeof(char));
-                g_snprintf ( tempString, 18, "%s", tvb_bytes_to_str_punct(message_tvb, OSS_FRAME_POS_DATA + frameStart1 + 1, 6, ':' ) );
+                g_snprintf ( tempString, 18, "%s", tvb_bytes_to_ep_str_punct(message_tvb, OSS_FRAME_POS_DATA + frameStart1 + 1, 6, ':' ) );
                 if ( memcmp ( global_scm_udid, tempString, 17 ) != 0 )
                 {
                     local_scm_udid = (char *)wmem_alloc0(wmem_file_scope(), 18 * sizeof(char));
index c232e63b8ca91b012ec07c1d7424c4774b0b1be5..c53b68ac947e8a8cae1c6afca282aa3b1c50418b 100644 (file)
@@ -1272,7 +1272,7 @@ dissect_ospf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                 if (tvb_bytes_exist(tvb, ospflen, crypto_len)) {
                     proto_tree_add_text(ospf_header_tree, tvb, ospflen, crypto_len,
                                         "Auth Data: %s",
-                                        tvb_bytes_to_str(tvb, ospflen, crypto_len));
+                                        tvb_bytes_to_ep_str(tvb, ospflen, crypto_len));
                     proto_tree_set_appendix(ospf_header_tree, tvb, ospflen, crypto_len);
                 }
                 break;
@@ -1391,7 +1391,7 @@ dissect_ospfv2_lls_tlv(tvbuff_t *tvb, int offset, proto_tree *tree)
                             tvb_get_ntohl(tvb, offset + 4));
         proto_tree_add_text(ospf_lls_tlv_tree, tvb, offset + 8, length - 4,
                             "Auth Data: %s",
-                            tvb_bytes_to_str(tvb, offset + 8, length - 4));
+                            tvb_bytes_to_ep_str(tvb, offset + 8, length - 4));
         break;
     }
 
@@ -2334,7 +2334,7 @@ dissect_ospf_lsa_mpls(tvbuff_t *tvb, int offset, proto_tree *tree,
                 case OIF_TNA_NSAP_ADDRESS:
                     ti = proto_tree_add_text(tlv_tree, tvb, stlv_offset, stlv_len+4,
                                              "%s (NSAP): %s", stlv_name,
-                                             tvb_bytes_to_str (tvb, stlv_offset + 8, stlv_len - 4));
+                                             tvb_bytes_to_ep_str (tvb, stlv_offset + 8, stlv_len - 4));
                     stlv_tree = proto_item_add_subtree(ti, ett_ospf_lsa_oif_tna_stlv);
                     proto_tree_add_text(stlv_tree, tvb, stlv_offset, 2,
                                         "TLV Type: %u: %s (NSAP)", stlv_type, stlv_name);
@@ -2342,7 +2342,7 @@ dissect_ospf_lsa_mpls(tvbuff_t *tvb, int offset, proto_tree *tree,
                     proto_tree_add_text(stlv_tree, tvb, stlv_offset+4, 1, "Addr Length: %u",
                                         tvb_get_guint8 (tvb, stlv_offset+4));
                     proto_tree_add_text(stlv_tree, tvb, stlv_offset+8, stlv_len - 4, "TNA Addr: %s",
-                                        tvb_bytes_to_str(tvb, stlv_offset+8, stlv_len - 4));
+                                        tvb_bytes_to_ep_str(tvb, stlv_offset+8, stlv_len - 4));
                     break;
 
                 default:
index bd6ecb96820bdb8a923af92a9b2d2fde52a39351..f0e0936c7ed3f4e5e69f5a2bf0153eed66249449 100644 (file)
@@ -841,7 +841,7 @@ dissect_pgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
        pgmhdr_opts = tvb_get_guint8(tvb, 5);
        pgmhdr_cksum = tvb_get_ntohs(tvb, 6);
-       gsi = tvb_bytes_to_str(tvb, 8, 6);
+       gsi = tvb_bytes_to_ep_str(tvb, 8, 6);
        pgmhdr_tsdulen = tvb_get_ntohs(tvb, 14);
        sqn = tvb_get_ntohl(tvb, 16);
 
index dfd04841dc8a2c564c1b9f2a1abb866909782284..76d23fe187aa94ec3a6e53f9ddcfd119e13fe05c 100644 (file)
@@ -3919,7 +3919,7 @@ dissect_cp(tvbuff_t *tvb, int proto_id, int proto_subtree_index,
             proto_tree_add_bytes_format(fh_tree, hf_ppp_data, tvb, offset,
                 length, NULL, "Rejected Packet (%d byte%s): %s", length,
                 plurality(length, "", "s"),
-                tvb_bytes_to_str(tvb, offset, length));
+                tvb_bytes_to_ep_str(tvb, offset, length));
         }
         break;
 
@@ -5427,7 +5427,7 @@ dissect_chap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                 tvb_format_text(tvb, name_offset,
                                                 (name_size > 20) ? 20 : name_size),
                                 (name_size > 20) ? "..." : "",
-                                tvb_bytes_to_str(tvb, value_offset, value_size));
+                                tvb_bytes_to_ep_str(tvb, value_offset, value_size));
             }
         }
         break;
index 9548d62b300135b1cf6e791fba6c96a4f69cf8bb..51afc0d157d8f5c46b2a9b6885be024a7418c041 100644 (file)
@@ -901,7 +901,7 @@ void dissect_ptpIP_guid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gui
 {
     guint8 *guid;
 
-    guid = tvb_bytes_to_str(tvb, *offset, PTPIP_GUID_SIZE);
+    guid = tvb_bytes_to_ep_str(tvb, *offset, PTPIP_GUID_SIZE);
     proto_tree_add_item(tree, hf_ptpIP_guid, tvb, *offset, PTPIP_GUID_SIZE, ENC_NA);
     *offset += PTPIP_GUID_SIZE;
     col_append_fstr(
index 2b3628c8fa109a9d2a4684480fd212204a6bb38c..597951005416878d51863f48ad03f7cc70e2672b 100644 (file)
@@ -1013,7 +1013,7 @@ dissect_fhandle_data_unknown(tvbuff_t *tvb, int offset, proto_tree *tree)
                                        "%s%s",
                                        first_line ? "data: " :
                                                     "      ",
-                                       tvb_bytes_to_str(tvb,offset,sublen));
+                                       tvb_bytes_to_ep_str(tvb,offset,sublen));
                bytes_left -= sublen;
                offset += sublen;
                first_line = FALSE;
index ec19b58735a4d6e570a0c6f6d31a3cbe8190cbad..70acb0ff92d5248bc6897e69bf62c76479592b23 100644 (file)
@@ -378,7 +378,7 @@ dissect_q2931_aal_parameters_ie(tvbuff_t *tvb, int offset, int len,
                        len = 4;
                proto_tree_add_text(tree, tvb, offset, len,
                    "User defined AAL information: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
 
@@ -1207,7 +1207,7 @@ dissect_q2931_cause_ie(tvbuff_t *tvb, int offset, int len,
                case Q2931_REJ_USER_SPECIFIC:
                        proto_tree_add_text(tree, tvb, offset, len,
                            "User specific diagnostic: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        break;
 
                case Q2931_REJ_IE_MISSING:
@@ -1227,7 +1227,7 @@ dissect_q2931_cause_ie(tvbuff_t *tvb, int offset, int len,
                default:
                        proto_tree_add_text(tree, tvb, offset, len,
                            "Diagnostic: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        break;
                }
                break;
@@ -1303,7 +1303,7 @@ dissect_q2931_cause_ie(tvbuff_t *tvb, int offset, int len,
        default:
                proto_tree_add_text(tree, tvb, offset, len,
                    "Diagnostics: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
        }
 }
 
@@ -1439,7 +1439,7 @@ dissect_q2931_number_ie(tvbuff_t *tvb, int offset, int len,
                if (len < 20) {
                        proto_tree_add_text(tree, tvb, offset, len,
                            "Number (too short): %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        return;
                }
                ti = proto_tree_add_text(tree, tvb, offset, len, "Number");
@@ -1449,7 +1449,7 @@ dissect_q2931_number_ie(tvbuff_t *tvb, int offset, int len,
 
        default:
                proto_tree_add_text(tree, tvb, offset, len, "Number: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                break;
        }
 }
@@ -1493,7 +1493,7 @@ dissect_q2931_party_subaddr_ie(tvbuff_t *tvb, int offset, int len,
        if (len == 0)
                return;
        proto_tree_add_text(tree, tvb, offset, len, "Subaddress: %s",
-           tvb_bytes_to_str(tvb, offset, len));
+           tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 /*
@@ -2009,7 +2009,7 @@ dissect_q2931_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree,
                 * dump it as data and be done with it.
                 */
                proto_tree_add_text(ie_tree, tvb, offset + 4,  len,
-                   "Data: %s", tvb_bytes_to_str(tvb, offset + 4, len));
+                   "Data: %s", tvb_bytes_to_ep_str(tvb, offset + 4, len));
        }
 }
 
index b13f9863ccddfd5a9894b9b78754db11ce36d484..61bf34c291721d900c9223c83c187138351b5848 100644 (file)
@@ -778,7 +778,7 @@ dissect_q931_bearer_capability_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                proto_tree_add_boolean(tree, hf_q931_extension_ind, tvb, offset, 1, octet);
                proto_tree_add_uint(tree, hf_q931_coding_standard, tvb, offset, 1, octet);
                return;
@@ -1277,7 +1277,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len,
                proto_tree_add_uint(tree, hf_q931_coding_standard, tvb, offset, 1, octet);
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        proto_tree_add_uint(tree, hf_q931_cause_location, tvb, offset, 1, octet);
@@ -1354,7 +1354,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len,
                case Q931_REJ_USER_SPECIFIC:
                        proto_tree_add_text(tree, tvb, offset, len,
                            "User specific diagnostic: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        break;
 
                case Q931_REJ_IE_MISSING:
@@ -1374,7 +1374,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len,
                default:
                        proto_tree_add_text(tree, tvb, offset, len,
                            "Diagnostic: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        break;
                }
                break;
@@ -1412,7 +1412,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len,
        default:
                proto_tree_add_text(tree, tvb, offset, len,
                    "Diagnostics: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
        }
 }
 
@@ -1499,7 +1499,7 @@ dissect_q931_call_state_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        proto_tree_add_text(tree, tvb, offset, 1,
@@ -1601,7 +1601,7 @@ dissect_q931_channel_identification_ie(tvbuff_t *tvb, int offset, int len,
                         */
                        proto_tree_add_text(tree, tvb, offset,
                            len, "Data: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        return;
                }
                proto_tree_add_item(tree, hf_q931_channel_map, tvb, offset, 1, ENC_BIG_ENDIAN);
@@ -1669,7 +1669,7 @@ dissect_q931_progress_indicator_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        proto_tree_add_text(tree, tvb, offset, 1,
@@ -1759,7 +1759,7 @@ dissect_q931_ns_facilities_ie(tvbuff_t *tvb, int offset, int len,
                return;
        proto_tree_add_text(tree, tvb, offset,
            len, "Network-specific facility specification: %s",
-           tvb_bytes_to_str(tvb, offset, len));
+           tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 /*
@@ -2297,7 +2297,7 @@ dissect_q931_party_subaddr_ie(tvbuff_t *tvb, int offset, int len,
        if (len == 0)
                return;
        proto_tree_add_text(tree, tvb, offset, len, "Subaddress: %s",
-           tvb_bytes_to_str(tvb, offset, len));
+           tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 /*
@@ -2428,7 +2428,7 @@ dissect_q931_high_layer_compat_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        if (len == 0)
@@ -2517,7 +2517,7 @@ dissect_q931_user_user_ie(tvbuff_t *tvb, packet_info *pinfo, int offset, int len
 
        default:
                proto_tree_add_text(tree, tvb, offset, len, "User information: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                break;
        }
 }
@@ -2905,7 +2905,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree,
                                        proto_tree_add_text(ie_tree, tvb,
                                            offset + 4, info_element_len - 1,
                                            "User information: %s",
-                                           tvb_bytes_to_str(tvb, offset + 4,
+                                           tvb_bytes_to_ep_str(tvb, offset + 4,
                                              info_element_len - 1));
                                }
                        }
@@ -3212,7 +3212,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree,
                                                proto_tree_add_text(ie_tree, tvb,
                                                        offset + 2, info_element_len,
                                                        "Data: %s",
-                                                       tvb_bytes_to_str(tvb, offset + 2,
+                                                       tvb_bytes_to_ep_str(tvb, offset + 2,
                                                          info_element_len));
                                        }
                                        break;
index 96464ce4bbeaad12bdcfbd693aaa45eb0c5c6e9b..ad2f772e03321504a22ac98bec3a04606ab8565f 100644 (file)
@@ -746,7 +746,7 @@ dissect_q932_ni_ie(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree
   proto_tree_add_uint(tree, hf_q932_nd, tvb, offset - (length - remain), length - remain, value);
 
   if (remain > 0) {
-    proto_tree_add_text(tree, tvb, offset - remain, remain, "ASN.1 Encoded Data Structure(NOT IMPLEMENTED): %s", tvb_bytes_to_str(tvb, offset - remain, remain));
+    proto_tree_add_text(tree, tvb, offset - remain, remain, "ASN.1 Encoded Data Structure(NOT IMPLEMENTED): %s", tvb_bytes_to_ep_str(tvb, offset - remain, remain));
   }
 }
 
index baf78ffb4770aeec991b70daa644761ae8c10a9f..c52fbd65ef8189d6ec149e6d38e6facba01b56bd 100644 (file)
@@ -488,7 +488,7 @@ dissect_q933_bearer_capability_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                proto_tree_add_uint(tree, hf_q933_coding_standard, tvb, offset, 1, octet);
                proto_tree_add_boolean(tree, hf_q933_extension_ind, tvb, offset, 1, octet);
                return;
@@ -910,7 +910,7 @@ dissect_q933_cause_ie(tvbuff_t *tvb, int offset, int len,
                proto_tree_add_uint(tree, hf_q933_coding_standard, tvb, offset, 1, octet);
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        proto_tree_add_uint(tree, hf_q933_cause_location, tvb, offset, 1, octet);
@@ -981,7 +981,7 @@ dissect_q933_cause_ie(tvbuff_t *tvb, int offset, int len,
                case Q933_REJ_USER_SPECIFIC:
                        proto_tree_add_text(tree, tvb, offset, len,
                            "User specific diagnostic: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        break;
 
                case Q933_REJ_IE_MISSING:
@@ -1001,7 +1001,7 @@ dissect_q933_cause_ie(tvbuff_t *tvb, int offset, int len,
                default:
                        proto_tree_add_text(tree, tvb, offset, len,
                            "Diagnostic: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        break;
                }
                break;
@@ -1039,7 +1039,7 @@ dissect_q933_cause_ie(tvbuff_t *tvb, int offset, int len,
        default:
                proto_tree_add_text(tree, tvb, offset, len,
                    "Diagnostics: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
        }
 }
 
@@ -1088,7 +1088,7 @@ dissect_q933_call_state_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        proto_tree_add_text(tree, tvb, offset, 1,
@@ -1272,7 +1272,7 @@ dissect_q933_channel_identification_ie(tvbuff_t *tvb, int offset, int len,
                if (identifier_len != 0) {
                        proto_tree_add_text(tree, tvb, identifier_offset,
                            identifier_len, "Interface identifier: %s",
-                           tvb_bytes_to_str(tvb, identifier_offset, identifier_len));
+                           tvb_bytes_to_ep_str(tvb, identifier_offset, identifier_len));
                }
        }
 
@@ -1290,7 +1290,7 @@ dissect_q933_channel_identification_ie(tvbuff_t *tvb, int offset, int len,
                         */
                        proto_tree_add_text(tree, tvb, offset,
                            len, "Data: %s",
-                           tvb_bytes_to_str(tvb, offset, len));
+                           tvb_bytes_to_ep_str(tvb, offset, len));
                        return;
                }
                proto_tree_add_text(tree, tvb, offset, 1,
@@ -1340,7 +1340,7 @@ dissect_q933_progress_indicator_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
        proto_tree_add_text(tree, tvb, offset, 1,
@@ -1430,7 +1430,7 @@ dissect_q933_ns_facilities_ie(tvbuff_t *tvb, int offset, int len,
                return;
        proto_tree_add_text(tree, tvb, offset,
            len, "Network-specific facility specification: %s",
-           tvb_bytes_to_str(tvb, offset, len));
+           tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 static int
@@ -1724,7 +1724,7 @@ dissect_q933_party_subaddr_ie(tvbuff_t *tvb, int offset, int len,
        if (len == 0)
                return;
        proto_tree_add_text(tree, tvb, offset, len, "Subaddress: %s",
-           tvb_bytes_to_str(tvb, offset, len));
+           tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 /*
@@ -1781,7 +1781,7 @@ dissect_q933_high_layer_compat_ie(tvbuff_t *tvb, int offset, int len,
                 */
                proto_tree_add_text(tree, tvb, offset,
                    len, "Data: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                return;
        }
 
@@ -1861,7 +1861,7 @@ dissect_q933_user_user_ie(tvbuff_t *tvb, int offset, int len,
 
        default:
                proto_tree_add_text(tree, tvb, offset, len, "User information: %s",
-                   tvb_bytes_to_str(tvb, offset, len));
+                   tvb_bytes_to_ep_str(tvb, offset, len));
                break;
        }
 }
@@ -2152,7 +2152,7 @@ dissect_q933(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                                proto_tree_add_text(ie_tree, tvb,
                                    offset + 2, info_element_len,
                                    "Data: %s",
-                                   tvb_bytes_to_str(tvb, offset + 2,
+                                   tvb_bytes_to_ep_str(tvb, offset + 2,
                                          info_element_len));
                                break;
                        }
index 229b146d826616d9bc1b50cf3b19bfffbbcdeecc..c18c239ae72420a13c53c4711ff82ef3424cf309 100644 (file)
@@ -341,7 +341,7 @@ static const gchar *dissect_chap_password(proto_tree* tree, tvbuff_t* tvb, packe
                chap_tree = proto_item_add_subtree(ti, ett_chap);
                proto_tree_add_item(chap_tree, hf_radius_chap_ident, tvb, 0, 1, ENC_NA);
                proto_tree_add_item(chap_tree, hf_radius_chap_string, tvb, 1, 16, ENC_NA);
-       return (tvb_bytes_to_str(tvb, 0, len));
+       return (tvb_bytes_to_ep_str(tvb, 0, len));
 }
 
 static const gchar *dissect_framed_ip_address(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo _U_) {
@@ -705,7 +705,7 @@ void radius_string(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _
 
 void radius_octets(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_, tvbuff_t* tvb, int offset, int len, proto_item* avp_item) {
        proto_tree_add_item(tree, a->hf, tvb, offset, len, ENC_NA);
-       proto_item_append_text(avp_item, "%s", tvb_bytes_to_str(tvb, offset, len));
+       proto_item_append_text(avp_item, "%s", tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 void radius_ipaddr(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_, tvbuff_t* tvb, int offset, int len, proto_item* avp_item) {
@@ -832,7 +832,7 @@ void radius_date(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_
  */
 void radius_abinary(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_, tvbuff_t* tvb, int offset, int len, proto_item* avp_item) {
        proto_tree_add_item(tree, a->hf, tvb, offset, len, ENC_NA);
-       proto_item_append_text(avp_item, "%s", tvb_bytes_to_str(tvb, offset, len));
+       proto_item_append_text(avp_item, "%s", tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 void radius_ether(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_, tvbuff_t* tvb, int offset, int len, proto_item* avp_item) {
@@ -847,7 +847,7 @@ void radius_ether(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U
 
 void radius_ifid(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_, tvbuff_t* tvb, int offset, int len, proto_item* avp_item) {
        proto_tree_add_item(tree, a->hf, tvb, offset, len, ENC_NA);
-       proto_item_append_text(avp_item, "%s", tvb_bytes_to_str(tvb, offset, len));
+       proto_item_append_text(avp_item, "%s", tvb_bytes_to_ep_str(tvb, offset, len));
 }
 
 static void add_tlv_to_tree(proto_tree* tlv_tree, proto_item* tlv_item, packet_info* pinfo, tvbuff_t* tvb, radius_attr_info_t* dictionary_entry, guint32 tlv_length, guint32 offset) {
index 4b030013df8f63020221c50545c6ee531b06d49d..664a387d5fd6b518c79243f0b225cfd64f81fcd2 100644 (file)
@@ -4781,7 +4781,7 @@ dissect_ranap_IMSI(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, prot
                guint8* bytes = (guint8 *)tvb_memdup(wmem_packet_scope(),imsi_tvb,0,len);
 
                actx->pinfo->sccp_info->data.co.assoc->calling_party =
-                       wmem_strdup_printf(wmem_file_scope(), "IMSI: %s", bytes_to_str(bytes, len) );
+                       wmem_strdup_printf(wmem_file_scope(), "IMSI: %s", bytes_to_ep_str(bytes, len) );
        }
        digit_str = unpack_digits(imsi_tvb, 0);
        proto_tree_add_string(tree, hf_ranap_imsi_digits, imsi_tvb, 0, -1, digit_str);
index babc3aa88c7cdf6eea23cb1d154fceaeb49d1aaa..7aaf7751b16766caed73e57676e9decd9b5e4e95 100644 (file)
@@ -323,7 +323,7 @@ dissect_rip_authentication(tvbuff_t *tvb, int offset, proto_tree *tree)
        rip_authentication_tree = proto_item_add_subtree(ti, ett_auth_vec );
        proto_tree_add_text( rip_authentication_tree, tvb, offset-4+digest_off+4,
                        MD5_AUTH_DATA_LEN, "Authentication Data: %s",
-                       tvb_bytes_to_str_punct(tvb, offset-4+digest_off+4,
+                       tvb_bytes_to_ep_str_punct(tvb, offset-4+digest_off+4,
                                               MD5_AUTH_DATA_LEN, ' '));
        break;
     }
index 98bd48096af2b9610563552d585b21adc898345c..b4086dbe19c24bf61b8235cf7903e0afe894fd38 100644 (file)
@@ -460,7 +460,7 @@ dissect_lct(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
         if (toi_size <= 8)
             col_append_sep_fstr(pinfo->cinfo, COL_INFO, " ", "TOI: %" G_GINT64_MODIFIER "u", toi);
         else
-            col_append_sep_fstr(pinfo->cinfo, COL_INFO, " ", "TOI: 0x%s", tvb_bytes_to_str(tvb, offset, toi_size));
+            col_append_sep_fstr(pinfo->cinfo, COL_INFO, " ", "TOI: 0x%s", tvb_bytes_to_ep_str(tvb, offset, toi_size));
         offset += toi_size;
     }
 
index 0fe8d13fe510058fce1282281e73b5a79d1426de..f389180f6a3e51a725866db3a775b9f42860ab2a 100644 (file)
@@ -2472,14 +2472,14 @@ dissect_rsvp_ifid_tlv(proto_tree *ti, proto_tree *rsvp_object_tree,
             proto_tree_add_text(rsvp_ifid_subtree, tvb, offset + tlv_off + 4,
                                 tlv_len - 4,
                                 "Data: %s",
-                                tvb_bytes_to_str_punct(tvb, offset + tlv_off + 4, tlv_len - 4, ' '));
+                                tvb_bytes_to_ep_str_punct(tvb, offset + tlv_off + 4, tlv_len - 4, ' '));
             break;
         }
 
         padding = (4 - (tlv_len % 4)) % 4;
         if (padding != 0)
             proto_tree_add_text(rsvp_ifid_subtree, tvb, offset + tlv_off + tlv_len, padding, "Padding: %s",
-                                tvb_bytes_to_str_punct(tvb, offset + tlv_off + tlv_len, padding, ' '));
+                                tvb_bytes_to_ep_str_punct(tvb, offset + tlv_off + tlv_len, padding, ' '));
         tlv_off += tlv_len + padding;
     }
 }
@@ -3851,11 +3851,11 @@ dissect_rsvp_integrity(proto_item *ti _U_, proto_tree *rsvp_object_tree,
     proto_tree_add_item(rsvp_integ_flags_tree, hf_rsvp_integrity_flags_handshake,
                              tvb, offset2, 1, ENC_BIG_ENDIAN);
     proto_tree_add_text(rsvp_object_tree, tvb, offset2+2, 6,
-                        "Key Identifier: %s", tvb_bytes_to_str(tvb, offset2+2, 6));
+                        "Key Identifier: %s", tvb_bytes_to_ep_str(tvb, offset2+2, 6));
     proto_tree_add_text(rsvp_object_tree, tvb, offset2+8, 8,
                         "Sequence Number: %" G_GINT64_MODIFIER "u", tvb_get_ntoh64(tvb, offset2+8));
     proto_tree_add_text(rsvp_object_tree, tvb, offset2+16, obj_length - 20,
-                        "Hash: %s", tvb_bytes_to_str(tvb, offset2+16, obj_length - 20));
+                        "Hash: %s", tvb_bytes_to_ep_str(tvb, offset2+16, obj_length - 20));
 }
 
 /*------------------------------------------------------------------------------
@@ -5474,7 +5474,7 @@ dissect_rsvp_association(proto_tree *ti, proto_tree *rsvp_object_tree,
                             "Node ID: %s", tvb_ip_to_str(tvb, offset+12));
         proto_item_append_text(ti, "Node ID: %s", tvb_ip_to_str(tvb, offset+12));
         proto_tree_add_text(rsvp_object_tree, tvb, offset+8, 16,
-                            "Padding: %s", tvb_bytes_to_str_punct(tvb, offset+16, 8, ' '));
+                            "Padding: %s", tvb_bytes_to_ep_str_punct(tvb, offset+16, 8, ' '));
         break;
 
     default:
@@ -5563,7 +5563,7 @@ dissect_rsvp_lsp_tunnel_if_id_tlv(proto_tree *rsvp_object_tree,
             proto_tree_add_text(rsvp_lsp_tunnel_if_id_subtree, tvb, offset+tlv_off+8, 8,
                                 "Sub Interface/Connection ID: %" G_GINT64_MODIFIER "u (0x%s)",
                                 tvb_get_ntoh64(tvb, offset+tlv_off+8),
-                                tvb_bytes_to_str(tvb, offset+tlv_off+8, 8));
+                                tvb_bytes_to_ep_str(tvb, offset+tlv_off+8, 8));
             proto_tree_add_text(rsvp_lsp_tunnel_if_id_subtree, tvb, offset+tlv_off+16, 4,
                                 "SC PC ID: %s",
                                 tvb_ip_to_str(tvb, offset+tlv_off+16));
@@ -6151,7 +6151,7 @@ dissect_rsvp_call_id(proto_tree *ti, proto_tree *rsvp_object_tree,
 
         case 0x7F:
             offset4 = offset3 + len;
-            str = tvb_bytes_to_str(tvb, offset3, len);
+            str = tvb_bytes_to_ep_str(tvb, offset3, len);
             proto_tree_add_text(rsvp_object_tree, tvb, offset3, len,
                                 "Source Transport Network addr: %s", str);
             break;
@@ -6166,8 +6166,8 @@ dissect_rsvp_call_id(proto_tree *ti, proto_tree *rsvp_object_tree,
 
         proto_item_append_text(ti, "Src: %s. ", str);
         proto_tree_add_text(rsvp_object_tree, tvb, offset4, 8, "Local Identifier: %s",
-                            tvb_bytes_to_str(tvb, offset4, 8));
-        proto_item_append_text(ti, "Local ID: %s. ", tvb_bytes_to_str(tvb, offset4, 8));
+                            tvb_bytes_to_ep_str(tvb, offset4, 8));
+        proto_item_append_text(ti, "Local ID: %s. ", tvb_bytes_to_ep_str(tvb, offset4, 8));
         break;
 
     default:
index 04925f9569a94f340e0c6e276c86bafd1d88a477..6a8cc2f57f424ca54c0adada6d390ac6625858c5 100644 (file)
@@ -1534,9 +1534,9 @@ dissect_amf3_value_type(tvbuff_t *tvb, gint offset, proto_tree *tree, proto_item
                         iValueOffset += iValueLength;
                         iByteArrayValue = (guint8 *)tvb_memdup(wmem_packet_scope(), tvb, iValueOffset, iArrayLength);
                         proto_tree_add_bytes(val_tree, hf_amf_bytearray, tvb, iValueOffset, iArrayLength, iByteArrayValue);
-                        proto_item_append_text(ti, " %s", bytes_to_str(iByteArrayValue, iArrayLength));
+                        proto_item_append_text(ti, " %s", bytes_to_ep_str(iByteArrayValue, iArrayLength));
                         if (parent_ti != NULL)
-                                proto_item_append_text(parent_ti, " %s", bytes_to_str(iByteArrayValue, iArrayLength));
+                                proto_item_append_text(parent_ti, " %s", bytes_to_ep_str(iByteArrayValue, iArrayLength));
                 } else {
                         /* the upper 28 bits of the integer value are a object reference index */
                         proto_tree_add_uint(val_tree, hf_amf_object_reference, tvb, iValueOffset, iValueLength, iIntegerValue >> 1);
index 86db5aa69948f9326d05abbc3c8637fcaec00ebf..7554ffa40db4f0960950bb53eb0f29e8b4053397 100644 (file)
@@ -688,7 +688,7 @@ dissect_sigcomp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *sigcomp_tr
             offset = offset + len;
         }
         tvb_memcpy(tvb, partial_state, offset, partial_state_len);
-        partial_state_str = bytes_to_str(partial_state, partial_state_len);
+        partial_state_str = bytes_to_ep_str(partial_state, partial_state_len);
         proto_tree_add_string(sigcomp_tree,hf_sigcomp_partial_state,
             tvb, offset, partial_state_len, partial_state_str);
         offset = offset + partial_state_len;
index 5becafba56bd6431cdbe0a125f647ccef806922a..be0cf7d6c45ab4b3cd50da332dd046be6813e5d9 100644 (file)
@@ -1306,7 +1306,7 @@ dissect_simulcrypt_data(proto_tree *simulcrypt_tree, proto_item *simulcrypt_item
                /* Parameter  Length 2 Bytes */
                plen = tvb_get_ntohs(tvb, offset+2); /* read 2 byte length value */
                /* Parameter  Value plen Bytes */
-               pvalue_char = tvb_bytes_to_str(tvb, offset+4, plen);
+               pvalue_char = tvb_bytes_to_ep_str(tvb, offset+4, plen);
 
                simulcrypt_item = proto_tree_add_item(simulcrypt_tree, hf_simulcrypt_parameter, tvb, offset, plen+2+2, ENC_NA );
 
index 94689ac7cedb61e9c3c6bac761b098ea7f3b4808..9b3f3bc3c8899ae2612b7b18b0fab3f66462eaab 100644 (file)
@@ -628,7 +628,7 @@ add_logon_hours(tvbuff_t *tvb, int offset, int count, packet_info *pinfo _U_,
                        proto_tree_add_bytes_format_value(tree, hf_index, tvb,
                            cptr, count, NULL,
                            "%s (wrong length, should be 21, is %d",
-                           tvb_bytes_to_str(tvb, cptr, count), count);
+                           tvb_bytes_to_ep_str(tvb, cptr, count), count);
                }
        } else {
                proto_tree_add_bytes_format_value(tree, hf_index, tvb, 0, 0,
@@ -1709,7 +1709,7 @@ dissect_request_parameters(tvbuff_t *tvb, int offset, packet_info *pinfo,
                                    "%s: Value is %s, type is wrong (b)",
                                    proto_registrar_get_name((*items->hf_index == -1) ?
                                      hf_smb_pipe_bytes_param : *items->hf_index),
-                                   tvb_bytes_to_str(tvb, offset, count));
+                                   tvb_bytes_to_ep_str(tvb, offset, count));
                                offset += count;
                                items++;
                        } else {
@@ -1862,7 +1862,7 @@ dissect_response_parameters(tvbuff_t *tvb, int offset, packet_info *pinfo,
                                    "%s: Value is %s, type is wrong (g)",
                                    proto_registrar_get_name((*items->hf_index == -1) ?
                                      hf_smb_pipe_bytes_param : *items->hf_index),
-                                   tvb_bytes_to_str(tvb, offset, count));
+                                   tvb_bytes_to_ep_str(tvb, offset, count));
                                offset += count;
                                items++;
                        } else {
@@ -2059,7 +2059,7 @@ dissect_transact_data(tvbuff_t *tvb, int offset, int convert,
                                    "%s: Value is %s, type is wrong (B)",
                                    proto_registrar_get_name((*items->hf_index == -1) ?
                                      hf_smb_pipe_bytes_param : *items->hf_index),
-                                   tvb_bytes_to_str(tvb, offset, count));
+                                   tvb_bytes_to_ep_str(tvb, offset, count));
                                offset += count;
                                items++;
                        } else {
@@ -2151,7 +2151,7 @@ dissect_transact_data(tvbuff_t *tvb, int offset, int convert,
                                    "%s: Value is %s, type is wrong (b)",
                                    proto_registrar_get_name((*items->hf_index == -1) ?
                                      hf_smb_pipe_bytes_param : *items->hf_index),
-                                   tvb_bytes_to_str(tvb, cptr, count));
+                                   tvb_bytes_to_ep_str(tvb, cptr, count));
                                items++;
                        } else {
                                offset = (*items->func)(tvb, offset, count,
index 03178158f3fb02196a7c40a520fb9498d5d20ec1..052a8a001074ac89ba1a0da401f30c73c5b4a3d5 100644 (file)
@@ -1784,7 +1784,7 @@ smpp_handle_tlv(proto_tree *tree, tvbuff_t *tvb, int *offset)
                                         *offset, length, ENC_NA);
                 }
 
-                proto_item_append_text(sub_tree,": %s", tvb_bytes_to_str(tvb,*offset,length));
+                proto_item_append_text(sub_tree,": %s", tvb_bytes_to_ep_str(tvb,*offset,length));
                 (*offset) += length;
                 break;
         }
index 7effb2010be2e71e193213de4e3b863118e70e3e..585b6a0e840e4596e757ecf00d88a994ed9e15da 100644 (file)
@@ -1259,7 +1259,7 @@ dissect_snmp_engineid(proto_tree *tree, tvbuff_t *tvb, int offset, int len)
       /* 12-byte AgentID w/ 8-byte trailer */
       if (len_remain==8) {
        proto_tree_add_text(tree, tvb, offset, 8, "AgentID Trailer: 0x%s",
-                           tvb_bytes_to_str(tvb, offset, 8));
+                           tvb_bytes_to_ep_str(tvb, offset, 8));
        offset+=8;
        len_remain-=8;
       } else {
@@ -2695,7 +2695,7 @@ dissect_snmp_SNMPv3Message(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int off
                        if (usm_p.authOK) {
                                expert = &ei_snmp_authentication_ok;
                        } else {
-                               const gchar* calc_auth_str = bytestring_to_str(calc_auth,calc_auth_len,' ');
+                               const gchar* calc_auth_str = bytestring_to_ep_str(calc_auth,calc_auth_len,' ');
                                proto_item_append_text(authen_item, " calculated = %s", calc_auth_str);
                                expert = &ei_snmp_authentication_error;
                        }
index c6ca25ed8349c6c352c82c75934c38362abe1877..b37bce03df88ae37005648a1491eed75c5d18e05 100644 (file)
@@ -145,7 +145,7 @@ dissect_socketcan(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        col_add_fstr(pinfo->cinfo, COL_INFO, "%s: 0x%08x",
                     val_to_str(frame_type, frame_type_vals, "Unknown (0x%02x)"), can_id.id);
        col_append_fstr(pinfo->cinfo, COL_INFO, "   %s",
-                       tvb_bytes_to_str_punct(tvb, CAN_DATA_OFFSET, frame_len, ' '));
+                       tvb_bytes_to_ep_str_punct(tvb, CAN_DATA_OFFSET, frame_len, ' '));
 
        ti       = proto_tree_add_item(tree, proto_can, tvb, 0, -1, ENC_NA);
        can_tree = proto_item_add_subtree(ti, ett_can);
index 9d6b5553a03dd91b2b06bac723b40ded304bb2aa..dd3d7574de1c1bedfbbd710c935068a65ab28cbc 100644 (file)
@@ -3209,7 +3209,7 @@ ssl_privkey_to_sexp(struct gnutls_x509_privkey_int* priv_key)
     if (ret != 0) {
         ssl_debug_printf( "gnutls_x509_privkey_get_key_id(ssl_pkey, 0, buf_keyid, &buf_len) - %s\n", gnutls_strerror(ret));
     } else {
-        ssl_debug_printf( "Private key imported: KeyID %s\n", bytes_to_str_punct(buf_keyid, (int) buf_len, ':'));
+        ssl_debug_printf( "Private key imported: KeyID %s\n", bytes_to_ep_str_punct(buf_keyid, (int) buf_len, ':'));
     }
 
     /* RSA get parameter */
@@ -3494,7 +3494,7 @@ ssl_load_pkcs12(FILE* fp, const gchar *cert_passwd, const char** err) {
                     if (ret < 0) { g_strlcpy(buf_keyid, "<ERROR>", 32); }
 
                     private_key->x509_cert = ssl_cert;
-                    ssl_debug_printf( "Certificate imported: %s <%s>, KeyID %s\n", buf_name, buf_email, bytes_to_str(buf_keyid, (int) buf_len));
+                    ssl_debug_printf( "Certificate imported: %s <%s>, KeyID %s\n", buf_name, buf_email, bytes_to_ep_str(buf_keyid, (int) buf_len));
                     break;
 
                 case GNUTLS_BAG_PKCS8_KEY:
index 12cf2a817b516a9530cd5f39e1b0c3ad2c905dae..a46b9aa7d9b224040c961aedb0c14cbe5535bb0d 100644 (file)
@@ -687,11 +687,11 @@ dissect_t38_T_field_data(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_
     if (primary_part){
         if(value_len < 8){
             col_append_fstr(actx->pinfo->cinfo, COL_INFO, "[%s]",
-               tvb_bytes_to_str(value_tvb,0,value_len));
+               tvb_bytes_to_ep_str(value_tvb,0,value_len));
         }
         else {
             col_append_fstr(actx->pinfo->cinfo, COL_INFO, "[%s...]",
-               tvb_bytes_to_str(value_tvb,0,7));
+               tvb_bytes_to_ep_str(value_tvb,0,7));
         }
     }
 
index 76cb79a5546b4806485aef35ef42cfa32a568e05..4f15ac62c33bbc01c315d150257517d32405d065 100644 (file)
@@ -388,7 +388,7 @@ dissect_vuze_dht_key(tvbuff_t *tvb, packet_info _U_*pinfo, proto_tree *tree, int
   offset += TL_BYTE;
 
   proto_tree_add_item( sub_tree, hf_vuze_dht_key_data, tvb, offset, key_len, ENC_NA );
-  proto_item_append_text( ti, ": %d bytes ( %s )", key_len, tvb_bytes_to_str(tvb, offset, key_len ) );
+  proto_item_append_text( ti, ": %d bytes ( %s )", key_len, tvb_bytes_to_ep_str(tvb, offset, key_len ) );
   offset += key_len;
 
   return offset;
@@ -474,7 +474,7 @@ dissect_vuze_dht_value(tvbuff_t *tvb, packet_info _U_*pinfo, proto_tree *tree, i
     offset += TL_SHORT;
 
     proto_tree_add_item(sub_tree, hf_vuze_dht_value_bytes, tvb, offset, value_bytes_count, ENC_NA);
-    proto_item_append_text( ti, ": %d bytes ( %s )", value_bytes_count, tvb_bytes_to_str(tvb, offset, value_bytes_count ) );
+    proto_item_append_text( ti, ": %d bytes ( %s )", value_bytes_count, tvb_bytes_to_ep_str(tvb, offset, value_bytes_count ) );
     offset += value_bytes_count;
 
     offset = dissect_vuze_dht_contact( tvb, pinfo, sub_tree, offset );
@@ -553,7 +553,7 @@ dissect_vuze_dht_network_coordinate(tvbuff_t *tvb, packet_info _U_*pinfo, proto_
   sub_tree = proto_item_add_subtree(ti, ett_vuze_dht_network_coordinate);
 
   proto_item_append_text( ti, ": type %d, length %d ( %s )",
-    tvb_get_guint8(tvb,offset), tvb_get_guint8(tvb,offset+TL_BYTE), tvb_bytes_to_str(tvb, offset+TL_BYTE+TL_BYTE, coordinate_size ) );
+    tvb_get_guint8(tvb,offset), tvb_get_guint8(tvb,offset+TL_BYTE), tvb_bytes_to_ep_str(tvb, offset+TL_BYTE+TL_BYTE, coordinate_size ) );
 
   proto_tree_add_item( sub_tree, hf_vuze_dht_network_coordinate_type, tvb, offset, TL_BYTE, ENC_BIG_ENDIAN );
   offset += TL_BYTE;
index 1533ac6648ff1896b54626500748b6939b8ed632..1f24ead57bf9235a40251bb9e1391b2880c8dcae 100644 (file)
@@ -2370,7 +2370,7 @@ dissect_wccp2_capability_element(tvbuff_t *tvb, int offset, gint length,
     proto_tree_add_text(element_tree, tvb,
                         offset, capability_val_len,
                         "Value: %s",
-                        tvb_bytes_to_str(tvb, offset,
+                        tvb_bytes_to_ep_str(tvb, offset,
                                          capability_val_len));
     break;
   }
index ed59844d696de0f84885d6fc8b87baca4ccf9720..41de8dd7b66a9be249931ee5410e3dd436ac4d78 100644 (file)
@@ -469,7 +469,7 @@ add_session_id(proto_tree *tree, int hf, int hf_str, tvbuff_t *tvb, int offset)
        } else {
                hfinfo = proto_registrar_get_nth(hf);
                proto_tree_add_text (tree, tvb, offset, count+1, "%s: %s",
-                   hfinfo->name, tvb_bytes_to_str(tvb, offset+1, count));
+                   hfinfo->name, tvb_bytes_to_ep_str(tvb, offset+1, count));
        }
        return offset+1+count;
 }
index e0e9dd979de0179d3a7e5989d96934eb3f2318b8..ecb5ecd1eb8a471ea663a1442057a36ba29cb894 100644 (file)
@@ -233,7 +233,7 @@ dissect_yami_parameter(tvbuff_t *tvb, proto_tree *tree, int offset, proto_item *
                        offset += 4;
 
                        val = tvb_get_ptr(tvb, offset, val_len);
-                       repr = bytes_to_str(val, val_len);
+                       repr = bytes_to_ep_str(val, val_len);
 
                        proto_item_append_text(ti, ", Type: binary, Value: %s", repr);
                        offset += (val_len + 3) & ~3;
@@ -397,7 +397,7 @@ dissect_yami_parameter(tvbuff_t *tvb, proto_tree *tree, int offset, proto_item *
                                offset += 4;
 
                                val = tvb_get_ptr(tvb, offset, val_len);
-                               repr = bytes_to_str(val, val_len);
+                               repr = bytes_to_ep_str(val, val_len);
 
                                proto_item_append_text(ti, "%s, ", repr);
                                offset += (val_len + 3) & ~3;
index ef40e8e3e9911135609ffe7abc6abe8c9b0188dc..bf2b889f5d54d96d2468f69f2ce4e37dec5533d7 100644 (file)
@@ -1381,7 +1381,7 @@ static void dissect_zcl_part_trasfpartframe(tvbuff_t *tvb, proto_tree *tree, gui
     *offset += 1;
 
     /* Retrieve "PartitionedFrame" field */
-    data_frame = tvb_bytes_to_str_punct(tvb, *offset, frame_len, ':');
+    data_frame = tvb_bytes_to_ep_str_punct(tvb, *offset, frame_len, ':');
     proto_tree_add_string(tree, hf_zbee_zcl_part_part_frame, tvb, *offset, frame_len, data_frame);
     *offset += frame_len;
 
index f5f1e394ff185e00afa9cc2b94d70cd59caa8653..5c4f5e8b659b3c05b65b01d06ace75c6d8ec97bf 100644 (file)
@@ -1378,7 +1378,7 @@ dissect_zcl_appl_stats_log_rsp(tvbuff_t *tvb, proto_tree *tree, guint *offset)
     *offset += 4;
 
     /* Retrieve 'Log Payload' field */
-    log_data = tvb_bytes_to_str_punct(tvb, *offset, log_len, ':');
+    log_data = tvb_bytes_to_ep_str_punct(tvb, *offset, log_len, ':');
     proto_tree_add_string(tree, hf_zbee_zcl_appl_stats_log_payload, tvb, *offset, log_len, log_data);
     *offset += log_len;
 }/*dissect_zcl_appl_stats_log_rsp*/
index d8ea55df83e21769d646e1e0fc8bc73e9798a4d8..c6e0227a2e19b1c20d5b0f9bda97066046d63f13 100644 (file)
@@ -2487,7 +2487,7 @@ void dissect_zcl_attr_data(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint
 
             *offset += 1;
 
-            attr_string = tvb_bytes_to_str_punct(tvb, *offset, attr_uint, ':');
+            attr_string = tvb_bytes_to_ep_str_punct(tvb, *offset, attr_uint, ':');
             proto_item_append_text(tree, ", Octets: %s", attr_string);
             proto_tree_add_string(tree, hf_zbee_zcl_attr_ostr, tvb, *offset, attr_uint,
                             attr_string);
@@ -2522,7 +2522,7 @@ void dissect_zcl_attr_data(tvbuff_t *tvb, proto_tree *tree, guint *offset, guint
 
             *offset += 2;
 
-            attr_string = tvb_bytes_to_str_punct(tvb, *offset, attr_uint, ':');
+            attr_string = tvb_bytes_to_ep_str_punct(tvb, *offset, attr_uint, ':');
             proto_item_append_text(tree, ", Octets: %s", attr_string);
             proto_tree_add_string(tree, hf_zbee_zcl_attr_ostr, tvb, *offset, attr_uint, attr_string);
 
index c98461cd7f88566531893105eb465a0b01e833bd..2ced16203b31950f044043e81650823301a582e4 100644 (file)
@@ -257,7 +257,7 @@ dvb_add_chartbl(proto_tree *tree, int hf,
         proto_tree_add_bytes_format_value(tree, hf,
             tvb, offset, length, NULL, "%s (%s)",
             val_to_str_const(encoding, dvb_string_encoding_vals, "Unknown"),
-            bytes_to_str_punct(
+            bytes_to_ep_str_punct(
                 tvb_get_ptr(tvb, offset, length), length, ' '));
     }
 }
index b5c9b63d32ab3b332871d20d5198ce32617cf285..d7c6539a63b4a41a160e08c971f1d3c355cd5cef 100644 (file)
@@ -198,7 +198,7 @@ extern void oid_add_from_encoded(const char* name, const guint8 *oid, gint oid_l
                D(3,("\tOid (from encoded): %s %s ",name, oid_subid2string(subids,subids_len)));
                add_oid(name,OID_KIND_UNKNOWN,NULL,NULL,subids_len,subids);
        } else {
-               D(1,("Failed to add Oid: %s [%d]%s ",name?name:"NULL", oid_len,bytestring_to_str(oid, oid_len, ':')));
+               D(1,("Failed to add Oid: %s [%d]%s ",name?name:"NULL", oid_len,bytestring_to_ep_str(oid, oid_len, ':')));
        }
 }
 
@@ -1264,10 +1264,10 @@ char* oid_test_a2b(guint32 num_subids, guint32* subids) {
                                                        "oid_string2encoded=[%d]%s \n"
                                                        "oid_string2subid=%s \n "
                                                        ,sub2str
-                                                       ,sub2enc_len,bytestring_to_str(sub2enc, sub2enc_len, ':')
+                                                       ,sub2enc_len,bytestring_to_ep_str(sub2enc, sub2enc_len, ':')
                                                        ,enc2sub ? oid_subid2string(enc2sub,enc2sub_len) : "-"
                                                        ,enc2str
-                                                       ,str2enc_len,bytestring_to_str(str2enc, str2enc_len, ':')
+                                                       ,str2enc_len,bytestring_to_ep_str(str2enc, str2enc_len, ':')
                                                        ,str2sub ? oid_subid2string(str2sub,str2sub_len) : "-"
                                                        );
 }
index 4a7f37fb399546fdad2854f9d0635f5f0712fa90..2aa22cc802ab03e8892e57e5168ffc1c9dbf4e84 100644 (file)
@@ -3877,7 +3877,7 @@ proto_custom_set(proto_tree* tree, const int field_id, gint occurrence,
                        case FT_BYTES:
                                bytes = (guint8 *)fvalue_get(&finfo->value);
                                offset_r += protoo_strlcpy(result+offset_r,
-                                                          bytes_to_str(bytes,
+                                                          bytes_to_ep_str(bytes,
                                                                        fvalue_length(&finfo->value)),
                                                           size-offset_r);
                                break;
@@ -3996,7 +3996,7 @@ proto_custom_set(proto_tree* tree, const int field_id, gint occurrence,
 
                        case FT_ETHER:
                                offset_r += protoo_strlcpy(result+offset_r,
-                                                          bytes_to_str_punct((const guint8 *)fvalue_get(&finfo->value),
+                                                          bytes_to_ep_str_punct((const guint8 *)fvalue_get(&finfo->value),
                                                                              FT_ETHER_LEN, ':'),
                                                           size-offset_r);
                                break;
@@ -5463,7 +5463,7 @@ proto_item_fill_label(field_info *fi, gchar *label_str)
                case FT_UINT_BYTES:
                        bytes = (guint8 *)fvalue_get(&fi->value);
                        label_fill(label_str, 0, hfinfo,
-                                       (bytes) ? bytes_to_str(bytes, fvalue_length(&fi->value)) : "<MISSING>");
+                                       (bytes) ? bytes_to_ep_str(bytes, fvalue_length(&fi->value)) : "<MISSING>");
                        break;
 
                /* Four types of integers to take care of:
index cf0a96787f0dd48135982461fbfc533f7c995ba9..9e39d348f862cb99e947288daccb3427318a811a 100644 (file)
@@ -892,7 +892,7 @@ execute_next_instruction:
                if (print_level_2 ){
                        proto_tree_add_text(udvm_tree, message_tvb, 0, -1,
                                        "Calculated SHA-1: %s",
-                                       bytes_to_str(sha1_digest_buf, STATE_BUFFER_SIZE));
+                                       bytes_to_ep_str(sha1_digest_buf, STATE_BUFFER_SIZE));
                }
 
                current_address = next_operand_address;
@@ -2695,7 +2695,7 @@ execute_next_instruction:
                                sha1_update( &ctx, (guint8 *) sha1buff, state_length_buff[n] + 8);
                                sha1_finish( &ctx, sha1_digest_buf );
                                if (print_level_3 ){
-                                       proto_tree_add_text(udvm_tree, bytecode_tvb, 0, -1,"SHA1 digest %s",bytes_to_str(sha1_digest_buf, STATE_BUFFER_SIZE));
+                                       proto_tree_add_text(udvm_tree, bytecode_tvb, 0, -1,"SHA1 digest %s",bytes_to_ep_str(sha1_digest_buf, STATE_BUFFER_SIZE));
 
                                }
 /* begin partial state-id change cco@iptel.org */
@@ -2705,7 +2705,7 @@ execute_next_instruction:
                                udvm_state_create(sha1buff, sha1_digest_buf, STATE_MIN_ACCESS_LEN);
 /* end partial state-id change cco@iptel.org */
                                proto_tree_add_text(udvm_tree,bytecode_tvb, 0, -1,"### Creating state ###");
-                               proto_tree_add_string(udvm_tree,hf_id, bytecode_tvb, 0, 0, bytes_to_str(sha1_digest_buf, state_minimum_access_length_buff[n]));
+                               proto_tree_add_string(udvm_tree,hf_id, bytecode_tvb, 0, 0, bytes_to_ep_str(sha1_digest_buf, state_minimum_access_length_buff[n]));
 
                                n++;
 
index ad6bdc620025277eb3ff5b7ae5855a778a3522bb..d2123ec35039d90ab0a4c6bdd6a1d5400bb27a42 100644 (file)
@@ -630,7 +630,7 @@ sigcomp_init_udvm(void){
         */
        sip_sdp_buff = (guint8 *)g_malloc(SIP_SDP_STATE_LENGTH + 8);
 
-       partial_state_str = bytes_to_str(sip_sdp_state_identifier, 6);
+       partial_state_str = bytes_to_ep_str(sip_sdp_state_identifier, 6);
 
        /*
         * Debug        g_warning("Sigcomp init: Storing partial state =%s",partial_state_str);
@@ -654,7 +654,7 @@ sigcomp_init_udvm(void){
 
        presence_buff = (guint8 *)g_malloc(PRESENCE_STATE_LENGTH + 8);
 
-       partial_state_str = bytes_to_str(presence_state_identifier, 6);
+       partial_state_str = bytes_to_ep_str(presence_state_identifier, 6);
 
        memset(sip_sdp_buff, 0, 8);
        i = 0;
@@ -704,7 +704,7 @@ int udvm_state_access(tvbuff_t *tvb, proto_tree *tree,guint8 *buff,guint16 p_id_
                partial_state[n] = buff[p_id_start + n];
                n++;
        }
-       partial_state_str = bytes_to_str(partial_state, p_id_length);
+       partial_state_str = bytes_to_ep_str(partial_state, p_id_length);
        proto_tree_add_text(tree,tvb, 0, -1,"### Accessing state ###");
        proto_tree_add_string(tree,hf_id, tvb, 0, 0, partial_state_str);
 
@@ -818,7 +818,7 @@ void udvm_state_create(guint8 *state_buff,guint8 *state_identifier,guint16 p_id_
                partial_state[i] = state_identifier[i];
                i++;
        }
-       partial_state_str = bytes_to_str(partial_state, p_id_length);
+       partial_state_str = bytes_to_ep_str(partial_state, p_id_length);
 
        dummy_buff = (gchar *)g_hash_table_lookup(state_buffer_table, partial_state_str);
        if ( dummy_buff == NULL ){
@@ -847,7 +847,7 @@ void udvm_state_free(guint8 buff[],guint16 p_id_start,guint16 p_id_length){
                partial_state[i] = buff[p_id_start + i];
                i++;
        }
-       partial_state_str = bytes_to_str(partial_state, p_id_length);
+       partial_state_str = bytes_to_ep_str(partial_state, p_id_length);
        /* TODO Implement a state create counter before actually freeing states
         * Hmm is it a good idea to free the buffer at all?
         */
index 0e4a39e386470e78e3b28a2cca6e05a6b8b1c517..676c97d14e3816abcff7745472c41fd7e512b25f 100644 (file)
@@ -157,12 +157,12 @@ bytes_to_hexstr_punct(char *out, const guint8 *ad, guint32 len, char punct) {
  * the resulting string is (len-1) bytes shorter)
  */
 const gchar *
-bytestring_to_str(const guint8 *ad, const guint32 len, const char punct) {
+bytestring_to_ep_str(const guint8 *ad, const guint32 len, const char punct) {
        gchar *buf;
        size_t       buflen;
 
        if (!ad)
-               REPORT_DISSECTOR_BUG("Null pointer passed to bytestring_to_str()");
+               REPORT_DISSECTOR_BUG("Null pointer passed to bytestring_to_ep_str()");
 
        /* XXX, Old code was using int as iterator... Why len is guint32 anyway?! (darkjames) */
        if ( ((int) len) < 0)
@@ -191,13 +191,13 @@ bytestring_to_str(const guint8 *ad, const guint32 len, const char punct) {
 #define        MAX_BYTE_STR_LEN        48
 
 gchar *
-bytes_to_str(const guint8 *bd, int bd_len) {
+bytes_to_ep_str(const guint8 *bd, int bd_len) {
        gchar *cur;
        gchar *cur_ptr;
        int truncated = 0;
 
        if (!bd)
-               REPORT_DISSECTOR_BUG("Null pointer passed to bytes_to_str()");
+               REPORT_DISSECTOR_BUG("Null pointer passed to bytes_to_ep_str()");
 
        cur=(gchar *)ep_alloc(MAX_BYTE_STR_LEN+3+1);
        if (bd_len <= 0) { cur[0] = '\0'; return cur; }
@@ -220,13 +220,13 @@ bytes_to_str(const guint8 *bd, int bd_len) {
  * punct as a bytes separator.
  */
 gchar *
-bytes_to_str_punct(const guint8 *bd, int bd_len, gchar punct) {
+bytes_to_ep_str_punct(const guint8 *bd, int bd_len, gchar punct) {
        gchar *cur;
        gchar *cur_ptr;
        int truncated = 0;
 
        if (!punct)
-               return bytes_to_str(bd, bd_len);
+               return bytes_to_ep_str(bd, bd_len);
 
        cur=(gchar *)ep_alloc(MAX_BYTE_STR_LEN+3+1);
        if (bd_len <= 0) { cur[0] = '\0'; return cur; }
index f195976ffc20cd10a213b3787cb1401249ac9c45..cdb1adda581a9d3b3e046d1fccae676c25b79354 100644 (file)
@@ -112,9 +112,9 @@ WS_DLL_PUBLIC const gchar* port_type_to_str (port_type type);
  * @param bd_len The length of the byte array
  * @return A pointer to the formatted string
  *
- * @see bytes_to_str_punct()
+ * @see bytes_to_ep_str_punct()
  */
-WS_DLL_PUBLIC gchar *bytes_to_str(const guint8 *bd, int bd_len);
+WS_DLL_PUBLIC gchar *bytes_to_ep_str(const guint8 *bd, int bd_len);
 
 /** Turn an array of bytes into a string showing the bytes in hex,
  *  separated by a punctuation character.
@@ -124,11 +124,11 @@ WS_DLL_PUBLIC gchar *bytes_to_str(const guint8 *bd, int bd_len);
  * @param punct The punctuation character
  * @return A pointer to the formatted string
  *
- * @see bytes_to_str()
+ * @see bytes_to_ep_str()
  */
-WS_DLL_PUBLIC gchar *bytes_to_str_punct(const guint8 *bd, int bd_len, gchar punct);
+WS_DLL_PUBLIC gchar *bytes_to_ep_str_punct(const guint8 *bd, int bd_len, gchar punct);
 
-WS_DLL_PUBLIC const gchar *bytestring_to_str(const guint8 *, const guint32, const char punct);
+WS_DLL_PUBLIC const gchar *bytestring_to_ep_str(const guint8 *, const guint32, const char punct);
 
 #ifdef __cplusplus
 }
index 2594c8a582fd231f3a9c879e3222754dae4ab8f1..53b110ccdef1db200ba225584ea18e69c01ba1b2 100644 (file)
@@ -2729,9 +2729,9 @@ tvb_skip_wsp_return(tvbuff_t *tvb, const gint offset) {
  * separator.
  */
 gchar *
-tvb_bytes_to_str_punct(tvbuff_t *tvb, const gint offset, const gint len, const gchar punct)
+tvb_bytes_to_ep_str_punct(tvbuff_t *tvb, const gint offset, const gint len, const gchar punct)
 {
-       return bytes_to_str_punct(ensure_contiguous(tvb, offset, len), len, punct);
+       return bytes_to_ep_str_punct(ensure_contiguous(tvb, offset, len), len, punct);
 }
 
 
@@ -2804,9 +2804,9 @@ tvb_bcd_dig_to_wmem_packet_str(tvbuff_t *tvb, const gint offset, const gint len,
  * to the string with the formatted data.
  */
 gchar *
-tvb_bytes_to_str(tvbuff_t *tvb, const gint offset, const gint len)
+tvb_bytes_to_ep_str(tvbuff_t *tvb, const gint offset, const gint len)
 {
-       return bytes_to_str(ensure_contiguous(tvb, offset, len), len);
+       return bytes_to_ep_str(ensure_contiguous(tvb, offset, len), len);
 }
 
 /* Find a needle tvbuff within a haystack tvbuff. */
index b64e8a84212c75860715adb936f7784db24240e9..34bec3c0da9ccb500c7832f3e83515bbe97902cd 100644 (file)
@@ -653,14 +653,14 @@ WS_DLL_PUBLIC gint tvb_memeql(tvbuff_t *tvb, const gint offset,
  * to the string with the formatted data, with "punct" as a byte
  * separator.
  */
-WS_DLL_PUBLIC gchar *tvb_bytes_to_str_punct(tvbuff_t *tvb, const gint offset,
+WS_DLL_PUBLIC gchar *tvb_bytes_to_ep_str_punct(tvbuff_t *tvb, const gint offset,
     const gint len, const gchar punct);
 
 /**
  * Format a bunch of data from a tvbuff as bytes, returning a pointer
  * to the string with the formatted data.
  */
-WS_DLL_PUBLIC gchar *tvb_bytes_to_str(tvbuff_t *tvb, const gint offset,
+WS_DLL_PUBLIC gchar *tvb_bytes_to_ep_str(tvbuff_t *tvb, const gint offset,
     const gint len);
 
 /**
index 3b7eaf0395884c0f1fc07a6684d7a6cbfabf02b8..4b42493f04b0c74325b4a1574c79dafff2b41b33 100644 (file)
@@ -499,7 +499,7 @@ WSLUA_METAMETHOD Tvb__tostring(lua_State* L) {
     }
 
     len = tvb_length(tvb->ws_tvb);
-    str = ep_strdup_printf("TVB(%i) : %s",len,tvb_bytes_to_str(tvb->ws_tvb,0,len));
+    str = ep_strdup_printf("TVB(%i) : %s",len,tvb_bytes_to_ep_str(tvb->ws_tvb,0,len));
     lua_pushstring(L,str);
     WSLUA_RETURN(1); /* The string. */
 }
@@ -1402,7 +1402,7 @@ WSLUA_METAMETHOD TvbRange__tostring(lua_State* L) {
         return 0;
     }
 
-    lua_pushstring(L,tvb_bytes_to_str(tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len));
+    lua_pushstring(L,tvb_bytes_to_ep_str(tvbr->tvb->ws_tvb,tvbr->offset,tvbr->len));
     return 1;
 }
 
index 05c9b99ed038b13d95af1da3542731bf3cb13f6f..6662b5bac57bf0f14dc0d9cdbf4fd34f8ea73204 100644 (file)
@@ -1070,7 +1070,7 @@ static void wimaxasncp_dissect_tlv_value(
             const gchar  *format1;
             const gchar  *format2;
             const guint8 *p = tvb_get_ptr(tvb, offset, length);
-            const gchar  *s = bytestring_to_str(p, MIN(length, max_show_bytes), 0);
+            const gchar  *s = bytestring_to_ep_str(p, MIN(length, max_show_bytes), 0);
 
             if (length <= max_show_bytes)
             {
@@ -1250,7 +1250,7 @@ static void wimaxasncp_dissect_tlv_value(
         {
             const gchar  *format;
             const guint8 *p = tvb_get_ptr(tvb, offset, length);
-            const gchar  *s = bytestring_to_str(p, MIN(length, max_show_bytes), 0);
+            const gchar  *s = bytestring_to_ep_str(p, MIN(length, max_show_bytes), 0);
 
             if (length <= max_show_bytes)
             {
@@ -1770,7 +1770,7 @@ static void wimaxasncp_dissect_tlv_value(
             const gchar *format2;
             const guint8 *p = tvb_get_ptr(tvb, offset, length);
             const gchar *s =
-                bytestring_to_str(p, MIN(length, max_show_bytes), 0);
+                bytestring_to_ep_str(p, MIN(length, max_show_bytes), 0);
 
             if (length <= max_show_bytes)
             {
@@ -1810,7 +1810,7 @@ static void wimaxasncp_dissect_tlv_value(
     {
         const gchar *format;
         const guint8 *p = tvb_get_ptr(tvb, offset, length);
-        const gchar *s = bytestring_to_str(p, MIN(length, max_show_bytes), 0);
+        const gchar *s = bytestring_to_ep_str(p, MIN(length, max_show_bytes), 0);
 
         if (length <= max_show_bytes)
         {
index 77a76ebede8e4167d0ce00365ef75366c1e58382..810d533de745a4b4a824a4fef3d6ba3e8746c67b 100644 (file)
@@ -176,8 +176,8 @@ mcaststream_packet(void *arg, packet_info *pinfo, epan_dissect_t *edt _U_, const
         * address (for IPv6).
         */
        if ((pinfo->dl_dst.type != AT_ETHER) ||
-           ((g_ascii_strncasecmp("01005E", bytes_to_str((const guint8 *)pinfo->dl_dst.data, pinfo->dl_dst.len), 6) != 0) &&
-            (g_ascii_strncasecmp("3333", bytes_to_str((const guint8 *)pinfo->dl_dst.data, pinfo->dl_dst.len), 4) != 0)) )
+           ((g_ascii_strncasecmp("01005E", bytes_to_ep_str((const guint8 *)pinfo->dl_dst.data, pinfo->dl_dst.len), 6) != 0) &&
+            (g_ascii_strncasecmp("3333", bytes_to_ep_str((const guint8 *)pinfo->dl_dst.data, pinfo->dl_dst.len), 4) != 0)) )
                return 0;
 
        /* check whether we already have a stream with these parameters in the list */
index 9966418f807e3cf3c26cd8b2a1c46d5711f7c09c..bd00bf85255cfbde556ff0c7cacda5ced03a5176 100644 (file)
@@ -172,7 +172,7 @@ QString UatDialog::fieldString(guint row, guint column)
         string_rep = str;
         break;
     case PT_TXTMOD_HEXBYTES: {
-        string_rep = bytes_to_str((const guint8 *) str, length);
+        string_rep = bytes_to_ep_str((const guint8 *) str, length);
         break;
     }
     default: