Rename more to_str functions to have ep_ in the name if they return ephemeral
authorEvan Huus <eapache@gmail.com>
Thu, 19 Dec 2013 16:28:39 +0000 (16:28 -0000)
committerEvan Huus <eapache@gmail.com>
Thu, 19 Dec 2013 16:28:39 +0000 (16:28 -0000)
buffers. Remove two unused functions.

svn path=/trunk/; revision=54250

52 files changed:
asn1/snmp/packet-snmp-template.c
epan/dissectors/packet-acn.c
epan/dissectors/packet-adwin-config.c
epan/dissectors/packet-agentx.c
epan/dissectors/packet-bootp.c
epan/dissectors/packet-ccsds.c
epan/dissectors/packet-collectd.c
epan/dissectors/packet-dcerpc.c
epan/dissectors/packet-dhcp-failover.c
epan/dissectors/packet-dmp.c
epan/dissectors/packet-dnp.c
epan/dissectors/packet-dns.c
epan/dissectors/packet-dtpt.c
epan/dissectors/packet-dvbci.c
epan/dissectors/packet-glusterfs.c
epan/dissectors/packet-goose.c
epan/dissectors/packet-icmp.c
epan/dissectors/packet-icq.c
epan/dissectors/packet-ipmi.c
epan/dissectors/packet-ipp.c
epan/dissectors/packet-kismet.c
epan/dissectors/packet-lte-rrc.c
epan/dissectors/packet-mbim.c
epan/dissectors/packet-mms.c
epan/dissectors/packet-mmse.c
epan/dissectors/packet-nbns.c
epan/dissectors/packet-ncp2222.inc
epan/dissectors/packet-pktc.c
epan/dissectors/packet-radius.c
epan/dissectors/packet-rtmpt.c
epan/dissectors/packet-sctp.c
epan/dissectors/packet-selfm.c
epan/dissectors/packet-smb-browse.c
epan/dissectors/packet-smb-pipe.c
epan/dissectors/packet-smb.c
epan/dissectors/packet-snmp.c
epan/dissectors/packet-sv.c
epan/dissectors/packet-time.c
epan/dissectors/packet-vcdu.c
epan/dissectors/packet-who.c
epan/dissectors/packet-wsp.c
epan/dissectors/packet-zbee-zcl-ha.c
epan/dissectors/packet-zbee-zcl-se.c
epan/ftypes/ftype-time.c
epan/guid-utils.h
epan/print.c
epan/proto.c
epan/to_str.c
epan/to_str.h
epan/wslua/wslua_util.c
plugins/profinet/packet-dcerpc-pn-io.c
ui/gtk/voip_calls_dlg.c

index 2f09a95e04f1b377e7ede5ae7b8ead2d41c42c6b..7981578f5a40cbb92b9dd24cbd28bc97b09461fb 100644 (file)
@@ -1227,7 +1227,7 @@ dissect_snmp_engineid(proto_tree *tree, tvbuff_t *tvb, int offset, int len)
            ts.nsecs = 0;
            proto_tree_add_time_format_value(tree, hf_snmp_engineid_time, tvb, offset+4, 4,
                                             &ts, "%s",
-                                            abs_time_secs_to_str(seconds, ABSOLUTE_TIME_LOCAL, TRUE));
+                                            abs_time_secs_to_ep_str(seconds, ABSOLUTE_TIME_LOCAL, TRUE));
            offset+=8;
            len_remain=0;
          }
index ca3fc8b7c3aec15295cbdd315da1179aeda4800f..e3c43c2120b01e2264fa202ff0640462c23bac94 100644 (file)
@@ -2640,10 +2640,10 @@ dissect_acn_root_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int of
 
         /* get Header (CID) 16 bytes */
         tvb_get_guid(tvb, header_offset, &guid, ENC_BIG_ENDIAN);
-        proto_item_append_text(ti, ", Src: %s", guid_to_str(&guid));
+        proto_item_append_text(ti, ", Src: %s", guid_to_ep_str(&guid));
 
         /* add cid to info */
-        col_add_fstr(pinfo->cinfo,COL_INFO, "CID %s", guid_to_str(&guid));
+        col_add_fstr(pinfo->cinfo,COL_INFO, "CID %s", guid_to_ep_str(&guid));
 
         proto_tree_add_item(pdu_tree, hf_acn_cid, tvb, header_offset, 16, ENC_BIG_ENDIAN);
         /*header_offset += 16;*/
@@ -2689,7 +2689,7 @@ dissect_acn_root_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int of
 
       /* get Header (CID) 16 bytes */
       tvb_get_guid(tvb, header_offset, &guid, ENC_BIG_ENDIAN);
-      proto_item_append_text(ti, ", Src: %s", guid_to_str(&guid));
+      proto_item_append_text(ti, ", Src: %s", guid_to_ep_str(&guid));
 
       proto_tree_add_item(pdu_tree, hf_acn_cid, tvb, header_offset, 16, ENC_BIG_ENDIAN);
       /*header_offset += 16;*/
index de786052e956a254215ff88c03ec323f3e76150e..ffa6417db492f2aad8140ac1431954fea36d42a1 100644 (file)
@@ -357,11 +357,11 @@ dissect_TCPFlashUpdate(tvbuff_t *tvb,  packet_info *pinfo _U_, proto_tree *tree,
        offset += 4;
        tmp_time.secs = tvb_get_ntohl(tvb, offset);
        proto_tree_add_text(adwin_tree, tvb, offset, 4,
-                           "File time: %s", abs_time_to_str(&tmp_time, ABSOLUTE_TIME_LOCAL, TRUE));
+                           "File time: %s", abs_time_to_ep_str(&tmp_time, ABSOLUTE_TIME_LOCAL, TRUE));
        offset += 4;
        tmp_time.secs = tvb_get_ntohl(tvb, offset);
        proto_tree_add_text(adwin_tree, tvb, offset, 4,
-                           "Update time: %s", abs_time_to_str(&tmp_time, ABSOLUTE_TIME_LOCAL, TRUE));
+                           "Update time: %s", abs_time_to_ep_str(&tmp_time, ABSOLUTE_TIME_LOCAL, TRUE));
        offset += 4;
        proto_tree_add_item(adwin_tree, hf_adwin_config_unused, tvb, offset, 128, ENC_BIG_ENDIAN);
        offset += 128;
index 9eaff5265097f5408d3a43e14fc72f6872523a58..a05600c483f0981a00769b36f33c9e70165b480b 100644 (file)
@@ -479,7 +479,7 @@ dissect_response_pdu(tvbuff_t *tvb, proto_tree *tree, int offset, int len, guint
 
        NORLEL(flags, r_uptime, tvb, offset);
        proto_tree_add_uint_format(subtree, hf_resp_uptime, tvb, offset, 4, r_uptime,
-                       "sysUptime: %s", time_msecs_to_str(r_uptime));
+                       "sysUptime: %s", time_msecs_to_ep_str(r_uptime));
        proto_tree_add_item(subtree, hf_resp_error,  tvb, offset + 4, 2, encoding);
        proto_tree_add_item(subtree, hf_resp_index,  tvb, offset + 6, 2, encoding);
        offset += 8;
index 31b1fc6c6c9c64dc4370cbc0fa1fd3e9dd5c8d3e..f9c82aac5f84e19d45a4e917da3e07c3b89f5cc6 100644 (file)
@@ -1402,7 +1402,7 @@ bootp_handle_basic_types(packet_info *pinfo, proto_tree *tree, proto_item *item,
                if (hf != NULL) {
                        time_s_secs = (gint32) tvb_get_ntohl(tvb, offset);
                        proto_tree_add_int_format_value(tree, *hf,
-                               tvb, offset, 4, time_s_secs, "(%ds) %s", time_s_secs, time_secs_to_str(time_s_secs));
+                               tvb, offset, 4, time_s_secs, "(%ds) %s", time_s_secs, time_secs_to_ep_str(time_s_secs));
                }
                else if (hf_default->time_in_s_secs != NULL)
                        proto_tree_add_item(tree, *hf_default->time_in_s_secs, tvb, offset, 4, ENC_BIG_ENDIAN);
@@ -1420,7 +1420,7 @@ bootp_handle_basic_types(packet_info *pinfo, proto_tree *tree, proto_item *item,
                        time_u_secs = tvb_get_ntohl(tvb, offset);
                        proto_tree_add_uint_format_value(tree, *hf,
                                tvb, offset, 4, time_u_secs, "(%us) %s", time_u_secs,
-                               ((time_u_secs == 0xffffffff) ? "infinity" : time_secs_to_str_unsigned(time_u_secs)));
+                               ((time_u_secs == 0xffffffff) ? "infinity" : time_secs_to_ep_str_unsigned(time_u_secs)));
                }
                else if (hf_default->time_in_u_secs != NULL)
                        proto_tree_add_item(tree, *hf_default->time_in_u_secs, tvb, offset, 4, ENC_BIG_ENDIAN);
index 1cf8259b5ebd7564f22468f95edb553c6bc25a14..59860ffaefd601c37592d7c3d7f20d401cdb682f 100644 (file)
@@ -288,7 +288,7 @@ static const char* embedded_time_to_string ( int coarse_time, int fine_time )
         fraction = ( multiplier * ( (int)fine_time & 0xff ) ) / 256;
         t.nsecs = fraction*1000000;    /* msecs to nsecs */
 
-       return abs_time_to_str(&t, ABSOLUTE_TIME_DOY_UTC, TRUE);
+       return abs_time_to_ep_str(&t, ABSOLUTE_TIME_DOY_UTC, TRUE);
 }
 
 
index f67ee9fa6aaa4c5d1a2676e4a1f6e7f66462abb0..376f9e83855a1b360f5223d8787d1f200ebbf4f3 100644 (file)
@@ -487,7 +487,7 @@ dissect_collectd_integer (tvbuff_t *tvb, packet_info *pinfo, gint type_hf,
                gchar *strtime;
 
                nstime = collectd_time_to_nstime (*ret_value);
-               strtime = abs_time_to_str (&nstime, ABSOLUTE_TIME_LOCAL, /* show_zone = */ TRUE);
+               strtime = abs_time_to_ep_str (&nstime, ABSOLUTE_TIME_LOCAL, /* show_zone = */ TRUE);
                pi = proto_tree_add_text (tree_root, tvb, offset, length,
                                          "collectd %s segment: %s",
                                          val_to_str_const (type, part_names, "UNKNOWN"),
@@ -499,7 +499,7 @@ dissect_collectd_integer (tvbuff_t *tvb, packet_info *pinfo, gint type_hf,
                gchar *strtime;
 
                nstime = collectd_time_to_nstime (*ret_value);
-               strtime = rel_time_to_str (&nstime);
+               strtime = rel_time_to_ep_str (&nstime);
                pi = proto_tree_add_text (tree_root, tvb, offset, length,
                                          "collectd %s segment: %s",
                                          val_to_str_const (type, part_names, "UNKNOWN"),
index 3182cf07320cfb63cc85bda689b8e84970cc76d2..316bce42a1315bb7cf00e142e0ad3c6e6ea43cfd 100644 (file)
@@ -3296,7 +3296,7 @@ dissect_dcerpc_cn_bind(tvbuff_t *tvb, gint offset, packet_info *pinfo,
             iface_item = proto_tree_add_item(ctx_tree, hf_dcerpc_cn_bind_abstract_syntax, tvb, offset, 0, ENC_NA);
             iface_tree = proto_item_add_subtree(iface_item, ett_dcerpc_cn_iface);
 
-            uuid_str = guid_to_str((e_guid_t*)&if_id);
+            uuid_str = guid_to_ep_str((e_guid_t*)&if_id);
             uuid_name = guids_get_uuid_name(&if_id);
             if (uuid_name) {
                 proto_tree_add_guid_format(iface_tree, hf_dcerpc_cn_bind_if_id, tvb,
@@ -3341,7 +3341,7 @@ dissect_dcerpc_cn_bind(tvbuff_t *tvb, gint offset, packet_info *pinfo,
                 trans_item = proto_tree_add_item(ctx_tree, hf_dcerpc_cn_bind_trans_syntax, tvb, offset, 0, ENC_NA);
                 trans_tree = proto_item_add_subtree(trans_item, ett_dcerpc_cn_trans_syntax);
 
-                uuid_str = guid_to_str((e_guid_t *) &trans_id);
+                uuid_str = guid_to_ep_str((e_guid_t *) &trans_id);
                 uuid_name = guids_get_uuid_name(&trans_id);
 
                 if (uuid_name) {
@@ -3497,7 +3497,7 @@ dissect_dcerpc_cn_bind_ack(tvbuff_t *tvb, gint offset, packet_info *pinfo,
             dcerpc_tvb_get_uuid(tvb, offset, hdr->drep, &trans_id);
             uuid_name = guids_get_uuid_name(&trans_id);
             if (! uuid_name) {
-                uuid_name = guid_to_str((e_guid_t *) &trans_id);
+                uuid_name = guid_to_ep_str((e_guid_t *) &trans_id);
             }
             proto_tree_add_guid_format(ctx_tree, hf_dcerpc_cn_ack_trans_id, tvb,
                                        offset, 16, (e_guid_t *) &trans_id, "Transfer Syntax: %s",
@@ -3847,7 +3847,7 @@ dissect_dcerpc_cn_rqst(tvbuff_t *tvb, gint offset, packet_info *pinfo,
         if (dcerpc_tree) {
             proto_tree_add_guid_format(dcerpc_tree, hf_dcerpc_obj_id, tvb,
                                        offset, 16, (e_guid_t *) &obj_id, "Object UUID: %s",
-                                       guid_to_str((e_guid_t *) &obj_id));
+                                       guid_to_ep_str((e_guid_t *) &obj_id));
         }
         offset += 16;
     }
@@ -4077,7 +4077,7 @@ dissect_dcerpc_cn_resp(tvbuff_t *tvb, gint offset, packet_info *pinfo,
             if (dcerpc_tree && (memcmp(&value->object_uuid, &obj_id_null, sizeof(obj_id_null)) != 0)) {
                 pi = proto_tree_add_guid_format(dcerpc_tree, hf_dcerpc_obj_id, tvb,
                                                 offset, 0, (e_guid_t *) &value->object_uuid, "Object UUID: %s",
-                                                guid_to_str((e_guid_t *) &value->object_uuid));
+                                                guid_to_ep_str((e_guid_t *) &value->object_uuid));
                 PROTO_ITEM_SET_GENERATED(pi);
             }
 
@@ -5726,12 +5726,12 @@ dissect_dcerpc_dg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
     if (tree) {
         proto_tree_add_guid_format(dcerpc_tree, hf_dcerpc_obj_id, tvb,
                                    offset, 16, (e_guid_t *) &hdr.obj_id, "Object UUID: %s",
-                                   guid_to_str((e_guid_t *) &hdr.obj_id));
+                                   guid_to_ep_str((e_guid_t *) &hdr.obj_id));
     }
     offset += 16;
 
     if (tree) {
-        uuid_str = guid_to_str((e_guid_t*)&hdr.if_id);
+        uuid_str = guid_to_ep_str((e_guid_t*)&hdr.if_id);
         uuid_name = guids_get_uuid_name(&hdr.if_id);
         if (uuid_name) {
             proto_tree_add_guid_format(dcerpc_tree, hf_dcerpc_dg_if_id, tvb,
@@ -5746,7 +5746,7 @@ dissect_dcerpc_dg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *dat
     if (tree) {
         proto_tree_add_guid_format(dcerpc_tree, hf_dcerpc_dg_act_id, tvb,
                                    offset, 16, (e_guid_t *) &hdr.act_id, "Activity: %s",
-                                   guid_to_str((e_guid_t *) &hdr.act_id));
+                                   guid_to_ep_str((e_guid_t *) &hdr.act_id));
     }
     offset += 16;
 
index 101cf6ac9a4351e6a6efda34822ad7727302b41e..74f809cb870f0272250e53f6e7814893054c31bf 100644 (file)
@@ -454,7 +454,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                timex.nsecs = 0;
                proto_tree_add_time_format_value(dhcpfo_tree, hf_dhcpfo_time, tvb,
                    offset, 4, &timex, "%s",
-                   abs_time_secs_to_str(timex.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                   abs_time_secs_to_ep_str(timex.secs, ABSOLUTE_TIME_LOCAL, TRUE));
        }
        offset += 4;
 
@@ -650,7 +650,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                        lease_expiration_time =
                            tvb_get_ntohl(tvb, offset);
                        lease_expiration_time_str =
-                           abs_time_secs_to_str(lease_expiration_time, ABSOLUTE_TIME_LOCAL, TRUE);
+                           abs_time_secs_to_ep_str(lease_expiration_time, ABSOLUTE_TIME_LOCAL, TRUE);
 
                        proto_item_append_text(oi, ", %s",
                            lease_expiration_time_str);
@@ -672,7 +672,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                            tvb_get_ntohl(tvb, offset);
 
                        potential_expiration_time_str =
-                           abs_time_secs_to_str(potential_expiration_time, ABSOLUTE_TIME_LOCAL, TRUE);
+                           abs_time_secs_to_ep_str(potential_expiration_time, ABSOLUTE_TIME_LOCAL, TRUE);
 
                        proto_item_append_text(oi, ", %s",
                            potential_expiration_time_str);
@@ -694,7 +694,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                            tvb_get_ntohl(tvb, offset);
 
                        grace_expiration_time_str =
-                           abs_time_secs_to_str(grace_expiration_time, ABSOLUTE_TIME_LOCAL, TRUE);
+                           abs_time_secs_to_ep_str(grace_expiration_time, ABSOLUTE_TIME_LOCAL, TRUE);
 
                        proto_item_append_text(oi, ", %s",
                            grace_expiration_time_str);
@@ -715,7 +715,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                        client_last_transaction_time =
                            tvb_get_ntohl(tvb, offset);
                        client_last_transaction_time_str =
-                           abs_time_secs_to_str(client_last_transaction_time, ABSOLUTE_TIME_LOCAL, TRUE);
+                           abs_time_secs_to_ep_str(client_last_transaction_time, ABSOLUTE_TIME_LOCAL, TRUE);
 
                        proto_item_append_text(oi, ", %s",
                            client_last_transaction_time_str);
@@ -725,7 +725,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                            offset, option_length,
                            client_last_transaction_time,
                            "%s",
-                           abs_time_secs_to_str(client_last_transaction_time, ABSOLUTE_TIME_LOCAL, TRUE));
+                           abs_time_secs_to_ep_str(client_last_transaction_time, ABSOLUTE_TIME_LOCAL, TRUE));
                        break;
 
                case DHCP_FO_PD_START_TIME_OF_STATE:
@@ -736,7 +736,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                        start_time_of_state =
                            tvb_get_ntohl(tvb, offset);
                        start_time_of_state_str =
-                           abs_time_secs_to_str(start_time_of_state, ABSOLUTE_TIME_LOCAL, TRUE);
+                           abs_time_secs_to_ep_str(start_time_of_state, ABSOLUTE_TIME_LOCAL, TRUE);
 
                        proto_item_append_text(oi, ", %s",
                            start_time_of_state_str);
@@ -746,7 +746,7 @@ dissect_dhcpfo_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* da
                            offset, option_length,
                            start_time_of_state,
                            "%s",
-                           abs_time_secs_to_str(start_time_of_state, ABSOLUTE_TIME_LOCAL, TRUE));
+                           abs_time_secs_to_ep_str(start_time_of_state, ABSOLUTE_TIME_LOCAL, TRUE));
                        break;
 
                case DHCP_FO_PD_SERVERSTATE:
index 4ee60a82608f38e24546edac6dc9a1fbdb6bee53..ea716f8378b45c75058fbd49143122efac03b716 100644 (file)
@@ -2923,7 +2923,7 @@ static gint dissect_dmp_envelope (tvbuff_t *tvb, packet_info *pinfo,
                                    "%s",
                                    (subm_time & 0x7FFF) >= 0x7FF8 ?
                                    "Reserved" :
-                                   abs_time_secs_to_str (dmp.subm_time, ABSOLUTE_TIME_LOCAL, TRUE));
+                                   abs_time_secs_to_ep_str (dmp.subm_time, ABSOLUTE_TIME_LOCAL, TRUE));
   field_tree = proto_item_add_subtree (tf, ett_envelope_subm_time);
   proto_tree_add_item (field_tree, hf_envelope_time_diff_present, tvb, offset, 2, ENC_BIG_ENDIAN);
   proto_tree_add_item (field_tree, hf_envelope_subm_time_value, tvb, offset, 2, ENC_BIG_ENDIAN);
@@ -2941,7 +2941,7 @@ static gint dissect_dmp_envelope (tvbuff_t *tvb, packet_info *pinfo,
     if (secs == DMP_TIME_RESERVED) {
       proto_item_append_text (tf, "Reserved (0x%2.2x)", time_diff);
     } else {
-      proto_item_append_text (tf, "%s", time_secs_to_str (secs));
+      proto_item_append_text (tf, "%s", time_secs_to_ep_str (secs));
     }
     offset += 1;
   }
@@ -3253,9 +3253,9 @@ static gint dissect_dmp_report (tvbuff_t *tvb, packet_info *pinfo,
       proto_item_append_text (tf, "Reserved (0x%2.2x)", report);
       proto_item_append_text (ei, " (Reserved)");
     } else {
-      proto_item_append_text (tf, "%s (%s)", time_secs_to_str (secs),
-                              abs_time_secs_to_str (dmp.subm_time - secs, ABSOLUTE_TIME_LOCAL, TRUE));
-      proto_item_append_text (ei, " (%s from submission time)", time_secs_to_str (secs));
+      proto_item_append_text (tf, "%s (%s)", time_secs_to_ep_str (secs),
+                              abs_time_secs_to_ep_str (dmp.subm_time - secs, ABSOLUTE_TIME_LOCAL, TRUE));
+      proto_item_append_text (ei, " (%s from submission time)", time_secs_to_ep_str (secs));
     }
   } else {
     dmp.ndr = TRUE;
@@ -3367,9 +3367,9 @@ static gint dissect_dmp_notification (tvbuff_t *tvb, packet_info *pinfo _U_,
       proto_item_append_text (tf, "Reserved (0x%2.2x)", rec_time);
       proto_item_append_text (ei, " (Reserved)");
     } else {
-      proto_item_append_text (tf, "%s (%s)", time_secs_to_str (secs),
-                              abs_time_secs_to_str (dmp.subm_time - secs, ABSOLUTE_TIME_LOCAL, TRUE));
-      proto_item_append_text (ei, " (%s from submission time)", time_secs_to_str (secs));
+      proto_item_append_text (tf, "%s (%s)", time_secs_to_ep_str (secs),
+                              abs_time_secs_to_ep_str (dmp.subm_time - secs, ABSOLUTE_TIME_LOCAL, TRUE));
+      proto_item_append_text (ei, " (%s from submission time)", time_secs_to_ep_str (secs));
     }
     offset += 1;
 
@@ -3768,9 +3768,9 @@ static gint dissect_dmp_content (tvbuff_t *tvb, packet_info *pinfo,
       proto_item_append_text (tf, "Reserved (0x%2.2x)", exp_time);
       proto_item_append_text (ei, " (Reserved)");
     } else {
-      proto_item_append_text (tf, "%s (%s)", time_secs_to_str (secs),
-                              abs_time_secs_to_str (dmp.subm_time + secs, ABSOLUTE_TIME_LOCAL, TRUE));
-      proto_item_append_text (ei, " (%s from submission time)", time_secs_to_str (secs));
+      proto_item_append_text (tf, "%s (%s)", time_secs_to_ep_str (secs),
+                              abs_time_secs_to_ep_str (dmp.subm_time + secs, ABSOLUTE_TIME_LOCAL, TRUE));
+      proto_item_append_text (ei, " (%s from submission time)", time_secs_to_ep_str (secs));
     }
     offset += 1;
   }
@@ -3790,13 +3790,13 @@ static gint dissect_dmp_content (tvbuff_t *tvb, packet_info *pinfo,
       proto_item_append_text (tf, "0 minutes in the %s (%s)",
                               (dtg & 0x80) ? dtg_sign.true_string :
                               dtg_sign.false_string,
-                              abs_time_secs_to_str (dmp.subm_time, ABSOLUTE_TIME_LOCAL, TRUE));
+                              abs_time_secs_to_ep_str (dmp.subm_time, ABSOLUTE_TIME_LOCAL, TRUE));
     } else {
-      proto_item_append_text (tf, "%s in the %s (%s)", time_secs_to_str(secs),
+      proto_item_append_text (tf, "%s in the %s (%s)", time_secs_to_ep_str(secs),
                               (dtg & 0x80) ? dtg_sign.true_string :
                               dtg_sign.false_string, (dtg & 0x80) ?
-                              abs_time_secs_to_str (dmp.subm_time + secs, ABSOLUTE_TIME_LOCAL, TRUE) :
-                              abs_time_secs_to_str (dmp.subm_time - secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                              abs_time_secs_to_ep_str (dmp.subm_time + secs, ABSOLUTE_TIME_LOCAL, TRUE) :
+                              abs_time_secs_to_ep_str (dmp.subm_time - secs, ABSOLUTE_TIME_LOCAL, TRUE));
     }
     offset += 1;
   }
index c7e10473fbeeb23215a528053c9f96dbebff9170..38ed17587377c635067b34e14c36028d0113d23a 100644 (file)
@@ -2035,7 +2035,7 @@ dnp3_al_process_object(tvbuff_t *tvb, packet_info *pinfo, int offset,
 
             al_bit = (al_ptflags & AL_OBJ_BI_FLAG7) >> 7; /* bit shift 1xxxxxxx -> xxxxxxx1 */
             proto_item_append_text(point_item, ", Value: %u, Timestamp: %s",
-                                   al_bit, abs_time_to_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
+                                   al_bit, abs_time_to_ep_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
             proto_item_set_len(point_item, data_pos - offset);
 
             offset = data_pos;
@@ -2056,7 +2056,7 @@ dnp3_al_process_object(tvbuff_t *tvb, packet_info *pinfo, int offset,
 
             al_2bit = (al_ptflags >> 6) & 3; /* bit shift 11xxxxxx -> 00000011 */
             proto_item_append_text(point_item, ", Value: %u, Timestamp: %s",
-                                   al_2bit, abs_time_to_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
+                                   al_2bit, abs_time_to_ep_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
             proto_item_set_len(point_item, data_pos - offset);
 
             offset = data_pos;
@@ -2080,7 +2080,7 @@ dnp3_al_process_object(tvbuff_t *tvb, packet_info *pinfo, int offset,
 
             al_bit = (al_ptflags & AL_OBJ_BI_FLAG7) >> 7; /* bit shift 1xxxxxxx -> xxxxxxx1 */
             proto_item_append_text(point_item, ", Value: %u, Timestamp: %s",
-                                   al_bit, abs_time_to_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
+                                   al_bit, abs_time_to_ep_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
             proto_item_set_len(point_item, data_pos - offset);
 
             offset = data_pos;
@@ -2318,7 +2318,7 @@ dnp3_al_process_object(tvbuff_t *tvb, packet_info *pinfo, int offset,
               case AL_OBJ_FDCTRC_32T:
               case AL_OBJ_FDCTRC_16T:
                 dnp3_al_get_timestamp(&al_abstime, tvb, data_pos);
-                proto_item_append_text(point_item, ", Timestamp: %s", abs_time_to_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
+                proto_item_append_text(point_item, ", Timestamp: %s", abs_time_to_ep_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
                 proto_tree_add_time(point_tree, hf_dnp3_al_timestamp, tvb, data_pos, 6, &al_abstime);
                 data_pos += 6;
                 break;
@@ -2434,7 +2434,7 @@ dnp3_al_process_object(tvbuff_t *tvb, packet_info *pinfo, int offset,
               case AL_OBJ_AIFC_FLTT:
               case AL_OBJ_AIFC_DBLT:
                 dnp3_al_get_timestamp(&al_abstime, tvb, data_pos);
-                proto_item_append_text(point_item, ", Timestamp: %s", abs_time_to_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
+                proto_item_append_text(point_item, ", Timestamp: %s", abs_time_to_ep_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
                 proto_tree_add_time(point_tree, hf_dnp3_al_timestamp, tvb, data_pos, 6, &al_abstime);
                 data_pos += 6;
                 break;
@@ -2514,7 +2514,7 @@ dnp3_al_process_object(tvbuff_t *tvb, packet_info *pinfo, int offset,
               case AL_OBJ_AOC_FLTT:
               case AL_OBJ_AOC_DBLT:
                 dnp3_al_get_timestamp(&al_abstime, tvb, data_pos);
-                proto_item_append_text(point_item, ", Timestamp: %s", abs_time_to_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
+                proto_item_append_text(point_item, ", Timestamp: %s", abs_time_to_ep_str(&al_abstime, ABSOLUTE_TIME_UTC, FALSE));
                 proto_tree_add_time(point_tree, hf_dnp3_al_timestamp, tvb, data_pos, 6, &al_abstime);
                 data_pos += 6;
                 break;
index 4204b8d9d897a435521ce636cca43673cc9c5995..a93fb9ebc795bb1214f847df242c2cb85086deb5 100644 (file)
@@ -1796,19 +1796,19 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
       cur_offset += 4;
 
       ti_soa = proto_tree_add_item(rr_tree, hf_dns_soa_refresh_interval, tvb, cur_offset, 4, ENC_BIG_ENDIAN);
-      proto_item_append_text(ti_soa, " (%s)", time_secs_to_str(tvb_get_ntohl(tvb, cur_offset)));
+      proto_item_append_text(ti_soa, " (%s)", time_secs_to_ep_str(tvb_get_ntohl(tvb, cur_offset)));
       cur_offset += 4;
 
       ti_soa = proto_tree_add_item(rr_tree, hf_dns_soa_retry_interval, tvb, cur_offset, 4, ENC_BIG_ENDIAN);
-      proto_item_append_text(ti_soa, " (%s)", time_secs_to_str(tvb_get_ntohl(tvb, cur_offset)));
+      proto_item_append_text(ti_soa, " (%s)", time_secs_to_ep_str(tvb_get_ntohl(tvb, cur_offset)));
       cur_offset += 4;
 
       ti_soa = proto_tree_add_item(rr_tree, hf_dns_soa_expire_limit, tvb, cur_offset, 4, ENC_BIG_ENDIAN);
-      proto_item_append_text(ti_soa, " (%s)", time_secs_to_str(tvb_get_ntohl(tvb, cur_offset)));
+      proto_item_append_text(ti_soa, " (%s)", time_secs_to_ep_str(tvb_get_ntohl(tvb, cur_offset)));
       cur_offset += 4;
 
       ti_soa = proto_tree_add_item(rr_tree, hf_dns_soa_minimum_ttl, tvb, cur_offset, 4, ENC_BIG_ENDIAN);
-      proto_item_append_text(ti_soa, " (%s)", time_secs_to_str(tvb_get_ntohl(tvb, cur_offset)));
+      proto_item_append_text(ti_soa, " (%s)", time_secs_to_ep_str(tvb_get_ntohl(tvb, cur_offset)));
 
     }
     break;
@@ -2871,7 +2871,7 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
       rr_len     -= 1;
 
       ti = proto_tree_add_item(rr_tree, hf_dns_rrsig_original_ttl, tvb, cur_offset, 4, ENC_BIG_ENDIAN);
-      proto_item_append_text(ti, " (%s)", time_secs_to_str(tvb_get_ntohl(tvb, cur_offset)));
+      proto_item_append_text(ti, " (%s)", time_secs_to_ep_str(tvb_get_ntohl(tvb, cur_offset)));
       cur_offset += 4;
       rr_len     -= 4;
 
index 9ff1b5aca1503206f9a02df81feaf95a5ad42c7c..99e880ce5bd790befcbaac86dd5f1173307bc3c8 100644 (file)
@@ -285,7 +285,7 @@ dissect_dtpt_guid(tvbuff_t *tvb, guint offset, proto_tree *tree, int hfindex)
                        guid_name = guids_get_guid_name(&guid);
                        if (guid_name != NULL)
                                proto_item_set_text(dtpt_guid_item, "%s: %s (%s)",
-                               proto_registrar_get_name(hfindex), guid_name, guid_to_str(&guid));
+                               proto_registrar_get_name(hfindex), guid_name, guid_to_ep_str(&guid));
                        dtpt_guid_tree = proto_item_add_subtree(dtpt_guid_item, ett_dtpt_guid);
                }
                if (dtpt_guid_tree) {
@@ -299,7 +299,7 @@ dissect_dtpt_guid(tvbuff_t *tvb, guint offset, proto_tree *tree, int hfindex)
                                if (guid_name != NULL && dtpt_guid_data_item != NULL) {
                                        proto_item_set_text(dtpt_guid_data_item, "%s: %s (%s)",
                                        proto_registrar_get_name(hf_dtpt_guid_data),
-                                       guid_name, guid_to_str(&guid));
+                                       guid_name, guid_to_ep_str(&guid));
                                }
                        }
                }
index cad347c2ed65f247aac88d6a6f8d3f439b5c74df..46881ce60b9cb680367637ea4723cdb28ec32d75 100644 (file)
@@ -2777,7 +2777,7 @@ dissect_dvbci_payload_dt(guint32 tag, gint len_field,
         }
         else {
             col_append_sep_fstr(pinfo->cinfo, COL_INFO, NULL,
-                    "update every %s", rel_time_to_str(&resp_intv));
+                    "update every %s", rel_time_to_ep_str(&resp_intv));
         }
     }
     else if (tag==T_DATE_TIME) {
@@ -2797,7 +2797,7 @@ dissect_dvbci_payload_dt(guint32 tag, gint len_field,
         proto_tree_add_time(tree, hf_dvbci_utc_time,
                 tvb, offset, time_field_len, &utc_time);
         col_append_sep_fstr(pinfo->cinfo, COL_INFO, ": ", "%s UTC",
-                abs_time_to_str(&utc_time, ABSOLUTE_TIME_UTC, FALSE));
+                abs_time_to_ep_str(&utc_time, ABSOLUTE_TIME_UTC, FALSE));
         offset += time_field_len;
 
         if (len_field==7) {
@@ -3263,7 +3263,7 @@ dissect_dvbci_payload_cc(guint32 tag, gint len_field _U_,
                     break;
                 }
                 else {
-                    /* abs_time_to_str() never returns NULL */
+                    /* abs_time_to_ep_str() never returns NULL */
                     proto_tree_add_time(tree, hf_dvbci_pin_chg_time,
                             tvb, offset, UTC_TIME_LEN, &utc_time);
                 }
index b87a5d542b1e4ad4189785b174137076c6d9370c..b152465e64a45b30a68812ef8add463ebdd02ef4 100644 (file)
@@ -547,7 +547,7 @@ gluster_rpc_dissect_dict(proto_tree *tree, tvbuff_t *tvb, int hfindex, int offse
                                /* Gluster is not very endianness friendly */
                                tvb_get_letohguid(tvb, offset, &gfid);
 
-                               gfid_s = guid_to_str(&gfid);
+                               gfid_s = guid_to_ep_str(&gfid);
                                proto_item_append_text(dict_item, "%s", gfid_s);
                        /* this is a changelog in binary format */
                        } else if (value_len == 12 && !strncmp("trusted.afr.", key, 12)) {
index 81f12879a23a9c51f19bb83f4a5f975b73b6fbfa..eea9d0bc84f2ba95f5a8fa605a0be66950867bb0 100644 (file)
@@ -504,7 +504,7 @@ dissect_goose_UtcTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _
        ts.secs = seconds;
        ts.nsecs = nanoseconds;
 
-       ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
+       ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
 
        if(hf_index >= 0)
        {
index c0895fb5fa33de534505a5db1d4df0cb2bc953d6..6f04211e0cfcb9158b0f6b01e8d5c9bd302ca9f6 100644 (file)
@@ -1466,7 +1466,7 @@ dissect_icmp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data)
                                    "Address entry size: %u",
                                    addr_entry_size);
                proto_tree_add_text(icmp_tree, tvb, 6, 2, "Lifetime: %s",
-                                   time_secs_to_str(tvb_get_ntohs
+                                   time_secs_to_ep_str(tvb_get_ntohs
                                                     (tvb, 6)));
                break;
 
@@ -1693,16 +1693,16 @@ dissect_icmp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data)
                            get_best_guess_mstimeofday(tvb, 8, frame_ts);
                        proto_tree_add_text(icmp_tree, tvb, 8, 4,
                                            "Originate timestamp: %s after midnight UTC",
-                                           time_msecs_to_str(orig_ts));
+                                           time_msecs_to_ep_str(orig_ts));
 
                        proto_tree_add_text(icmp_tree, tvb, 12, 4,
                                            "Receive timestamp: %s after midnight UTC",
-                                           time_msecs_to_str
+                                           time_msecs_to_ep_str
                                            (get_best_guess_mstimeofday
                                             (tvb, 12, orig_ts)));
                        proto_tree_add_text(icmp_tree, tvb, 16, 4,
                                            "Transmit timestamp: %s after midnight UTC",
-                                           time_msecs_to_str
+                                           time_msecs_to_ep_str
                                            (get_best_guess_mstimeofday
                                             (tvb, 16, orig_ts)));
                }
index e0adfb01d2855a057c3771c6fdd48476c16c4ee0..114150e6abcbaae346d0ad33e70214574ebe20d8 100644 (file)
@@ -726,7 +726,7 @@ icqv5_cmd_login(proto_tree* tree, tvbuff_t *tvb, int offset)
 
        if (tree) {
                theTime = tvb_get_letohl(tvb, offset + CMD_LOGIN_TIME);
-               aTime = abs_time_secs_to_str(theTime, ABSOLUTE_TIME_LOCAL, TRUE);
+               aTime = abs_time_secs_to_ep_str(theTime, ABSOLUTE_TIME_LOCAL, TRUE);
                proto_tree_add_text(subtree, tvb, offset + CMD_LOGIN_TIME, 4,
                                        "Time: %ld = %s", (long)theTime, aTime);
                port = tvb_get_letohl(tvb, offset + CMD_LOGIN_PORT);
index d31b3a0f1bf8302897bebc17160eeb24f0417a00..e71731125c195e73dfd28c8dce3939f649d9157c 100644 (file)
@@ -766,10 +766,10 @@ ipmi_add_timestamp(proto_tree *tree, gint hf, tvbuff_t *tvb, guint offset)
        } else if (ts <= 0x20000000) {
                proto_tree_add_uint_format_value(tree, hf, tvb, offset, 4,
                                ts, "%s since SEL device's initialization",
-                               time_secs_to_str_unsigned(ts));
+                               time_secs_to_ep_str_unsigned(ts));
        } else {
                proto_tree_add_uint_format_value(tree, hf, tvb, offset, 4,
-                               ts, "%s", abs_time_secs_to_str(ts, ABSOLUTE_TIME_UTC, TRUE));
+                               ts, "%s", abs_time_secs_to_ep_str(ts, ABSOLUTE_TIME_UTC, TRUE));
        }
 }
 
index d57502063bab3538d07680c8ed17db511b7b209d..3b6d6915a6bfacc2b9396b948489f13987224050 100644 (file)
@@ -506,7 +506,7 @@ add_integer_tree(proto_tree *tree, tvbuff_t *tvb, int offset,
                                          1 + 2 + name_length + 2 + value_length,
                                          "%s: %s",
                                          format_text(name_val, name_length),
-                                         abs_time_secs_to_str(tvb_get_ntohl(tvb, offset + 1 + 2 + name_length + 2),
+                                         abs_time_secs_to_ep_str(tvb_get_ntohl(tvb, offset + 1 + 2 + name_length + 2),
                                                               ABSOLUTE_TIME_LOCAL,
                                                               TRUE));
 
index b3502a86bfc4b73664eddfbd28630df34be9e586..7f72ee9682ed37bc2170dc189be436a24e0f0b27 100644 (file)
@@ -245,7 +245,7 @@ dissect_kismet(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void * da
                                                /*
                                                 * Format ascii representaion of time
                                                 */
-                                               ptr = abs_time_secs_to_str(t, ABSOLUTE_TIME_LOCAL, TRUE);
+                                               ptr = abs_time_secs_to_ep_str(t, ABSOLUTE_TIME_LOCAL, TRUE);
                                                proto_tree_add_text(reqresp_tree, tvb, offset,
                                                        tokenlen, "Time: %s", ptr);
                                        }
index e6fce7ce2cbf5200e6fa88c5fe3a00d67627f72a..c1150cb8f4d5529e95425932989d7053b3b39076 100644 (file)
@@ -8483,8 +8483,8 @@ dissect_lte_rrc_T_synchronousSystemTime(tvbuff_t *tvb _U_, int offset _U_, asn1_
     bits = tvb_get_bits64(sync_system_time_tvb, 0, 39, ENC_BIG_ENDIAN);
     ts.secs = (time_t)(bits/100) + 315964800; /* CDMA2000 epoch is 00:00:00 (midnight) UTC on 1980-01-06 */
     ts.nsecs = (int)(bits%100)*10000000;
-    proto_tree_add_text(subtree, sync_system_time_tvb, 0, -1, "CDMA  time: %s", abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, FALSE));
-    proto_tree_add_text(subtree, sync_system_time_tvb, 0, -1, "Local time: %s", abs_time_to_str(&ts, ABSOLUTE_TIME_LOCAL, TRUE));
+    proto_tree_add_text(subtree, sync_system_time_tvb, 0, -1, "CDMA  time: %s", abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, FALSE));
+    proto_tree_add_text(subtree, sync_system_time_tvb, 0, -1, "Local time: %s", abs_time_to_ep_str(&ts, ABSOLUTE_TIME_LOCAL, TRUE));
   }
 
   return offset;
@@ -8508,8 +8508,8 @@ dissect_lte_rrc_T_asynchronousSystemTime(tvbuff_t *tvb _U_, int offset _U_, asn1
     bits = tvb_get_bits64(async_system_time_tvb, 0, 49, ENC_BIG_ENDIAN);
     ts.secs = (time_t)((bits*8)/1228800) + 315964800; /* CDMA2000 epoch is 00:00:00 (midnight) UTC on 1980-01-06 */
     ts.nsecs = (int)(((bits%153600)*8*1000000000)/1228800);
-    proto_tree_add_text(subtree, async_system_time_tvb, 0, -1, "CDMA  time: %s", abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, FALSE));
-    proto_tree_add_text(subtree, async_system_time_tvb, 0, -1, "Local time: %s", abs_time_to_str(&ts, ABSOLUTE_TIME_LOCAL, TRUE));
+    proto_tree_add_text(subtree, async_system_time_tvb, 0, -1, "CDMA  time: %s", abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, FALSE));
+    proto_tree_add_text(subtree, async_system_time_tvb, 0, -1, "Local time: %s", abs_time_to_ep_str(&ts, ABSOLUTE_TIME_LOCAL, TRUE));
   }
 
   return offset;
@@ -10186,9 +10186,9 @@ dissect_lte_rrc_T_timeInfoUTC_r11(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t
   ts.secs = (time_t)(timeInfo/100)-2208988800U; /* epoch is 00:00:00 (midnight) UTC on 1900-01-01 */ 
   ts.nsecs = (int)(timeInfo%100)*10000000;
   proto_tree_add_text(subtree, tvb, old_offset>>3, (old_offset&0x07) ? 6 : 5,
-                      "UTC   time: %s", abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, FALSE));
+                      "UTC   time: %s", abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, FALSE));
   proto_tree_add_text(subtree, tvb, old_offset>>3, (old_offset&0x07) ? 6 : 5,
-                      "Local time: %s", abs_time_to_str(&ts, ABSOLUTE_TIME_LOCAL, TRUE));
+                      "Local time: %s", abs_time_to_ep_str(&ts, ABSOLUTE_TIME_LOCAL, TRUE));
 
   return offset;
 }
index 8f6cc11f689aaaf32b794bce976ee10a7c3e6486..d17493ab204f92386d14f41a2887da48e18d66dd 100644 (file)
@@ -1639,7 +1639,7 @@ mbim_dissect_service_id_uuid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *
         }
     }
     proto_tree_add_guid_format_value(tree, hf, tvb, *offset, 16, &uuid, "%s (%s)",
-                                     val_to_str_const(i, mbim_service_id_vals, "Unknown"), guid_to_str(&uuid));
+                                     val_to_str_const(i, mbim_service_id_vals, "Unknown"), guid_to_ep_str(&uuid));
     *offset += 16;
 
     return i;
@@ -2147,7 +2147,7 @@ mbim_dissect_context_type_uuid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
         }
     }
     proto_tree_add_guid_format_value(tree, hf_mbim_context_type, tvb, *offset, 16, &uuid, "%s (%s)",
-                                     val_to_str_const(i, mbim_context_type_vals, "Unknown"), guid_to_str(&uuid));
+                                     val_to_str_const(i, mbim_context_type_vals, "Unknown"), guid_to_ep_str(&uuid));
     *offset += 16;
 
     return i;
index d4552556a2bdab18487a5ff900b57db84f9b13aa..3052e3720ca19bf1a40beea292a8b56e2f39e279 100644 (file)
@@ -1847,7 +1847,7 @@ dissect_mms_TimeOfDay(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _
        if(len == 4)
        {
                milliseconds = tvb_get_ntohl(tvb, offset);
-               ptime = time_msecs_to_str(milliseconds);
+               ptime = time_msecs_to_ep_str(milliseconds);
 
                if(hf_index >= 0)
                {
@@ -1867,7 +1867,7 @@ dissect_mms_TimeOfDay(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _
                ts.secs = (days + 5113) * 86400 + milliseconds / 1000;
                ts.nsecs = (milliseconds % 1000) * 1000000U;
 
-               ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
+               ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
                if(hf_index >= 0)
                {
                        proto_tree_add_string(tree, hf_index, tvb, offset, len, ptime);
@@ -1943,7 +1943,7 @@ dissect_mms_UtcTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_
        ts.secs = seconds;
        ts.nsecs = nanoseconds;
 
-       ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
+       ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
 
        if(hf_index >= 0)
        {
index 1e66d22603097541d24fa526947612d3f80c7d38..340de610b2eeb13a93a4f300a63fe47512475837 100644 (file)
@@ -1201,7 +1201,7 @@ dissect_mmse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 pdut,
                                &count2);
                        tmptime.secs = tval;
                        tmptime.nsecs = 0;
-                       strval = abs_time_to_str(&tmptime, ABSOLUTE_TIME_LOCAL,
+                       strval = abs_time_to_ep_str(&tmptime, ABSOLUTE_TIME_LOCAL,
                            TRUE);
                        /* Now render the fields */
                        tvb_ensure_bytes_exist(tvb, offset - 1, length + count + 1);
index 161060d6b3030d4f3fc01c3727b2d9b9255c6b2c..dc284c40be50e0251fadb105f4ad4763624a2ab7 100644 (file)
@@ -300,7 +300,7 @@ add_rr_to_tree(proto_item *trr, int rr_type, tvbuff_t *tvb, int offset,
     proto_tree_add_text(rr_tree, tvb, offset, 2, "Class: %s", class_description);
     offset += 2;
     proto_tree_add_text(rr_tree, tvb, offset, 4, "Time to live: %s",
-                        time_secs_to_str(ttl));
+                        time_secs_to_ep_str(ttl));
     offset += 4;
     proto_tree_add_text(rr_tree, tvb, offset, 2, "Data length: %u", data_len);
     return rr_tree;
index ee5ae7986ed209c9c663b5b6d1af134bedb4bb66..75e96d83fe973d9fe5e786ed9b6d399becdfe9fc 100644 (file)
@@ -3403,7 +3403,7 @@ print_nds_values(proto_tree *vtree, tvbuff_t *tvb, guint32 syntax_type, nds_val
             voffset = voffset+4;
             ns.secs = tvb_get_letohl(tvb, voffset);
             ns.nsecs = 0;
-            proto_tree_add_time_format(nvtree, hf_nds_ds_time, tvb, voffset, 4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+            proto_tree_add_time_format(nvtree, hf_nds_ds_time, tvb, voffset, 4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
             voffset = voffset + 4;
             rnum = tvb_get_letohs(tvb, voffset); /* replica number */
             proto_tree_add_uint_format(nvtree, hf_nds_rnum, tvb, voffset,
@@ -3437,7 +3437,7 @@ print_nds_values(proto_tree *vtree, tvbuff_t *tvb, guint32 syntax_type, nds_val
             voffset += 4; /* This is the length of the time data no need to decode, always 4 bytes */
             ns.secs = tvb_get_letohl(tvb, voffset);
             ns.nsecs = 0;
-            proto_tree_add_time_format(nvtree, hf_nds_ds_time, tvb, voffset, 4, &ns, "Time: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+            proto_tree_add_time_format(nvtree, hf_nds_ds_time, tvb, voffset, 4, &ns, "Time: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
             voffset = voffset + 4;
             break;
         case 0x00000019:        /* Typed Name */
@@ -3648,7 +3648,7 @@ print_es_type(proto_tree *estree, tvbuff_t *tvb, nds_val *values, guint32 vtype,
                 ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                 ns.nsecs = 0;
                 proto_tree_add_time_format(nestree, hf_es_seconds, tvb, ioffset,
-                                           4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                           4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                 ioffset = ioffset + 4;
                 replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                 proto_tree_add_item(nestree, hf_nds_replica_num, tvb, ioffset,
@@ -3730,7 +3730,7 @@ print_es_type(proto_tree *estree, tvbuff_t *tvb, nds_val *values, guint32 vtype,
                 ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                 ns.nsecs = 0;
                 proto_tree_add_time_format(nestree, hf_es_seconds, tvb, ioffset,
-                                           4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                           4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                 ioffset = ioffset + 4;
                 replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                 proto_tree_add_item(nestree, hf_nds_replica_num, tvb, ioffset,
@@ -3870,7 +3870,7 @@ print_es_type(proto_tree *estree, tvbuff_t *tvb, nds_val *values, guint32 vtype,
                 ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                 ns.nsecs = 0;
                 proto_tree_add_time_format(nestree, hf_es_seconds, tvb, ioffset,
-                                           4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                           4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                 ioffset = ioffset + 4;
                 replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                 proto_tree_add_item(nestree, hf_nds_replica_num, tvb, ioffset,
@@ -3922,7 +3922,7 @@ print_es_type(proto_tree *estree, tvbuff_t *tvb, nds_val *values, guint32 vtype,
             ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
             ns.nsecs = 0;
             proto_tree_add_time_format(sub2tree, hf_es_seconds, tvb, ioffset,
-                                       4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                       4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
             ioffset = ioffset + 4;
             replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
             proto_tree_add_item(sub2tree, hf_nds_replica_num, tvb, ioffset,
@@ -4444,14 +4444,14 @@ process_entry_info(proto_tree *it_tree, tvbuff_t *tvb, nds_val *values)
         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
         ns.nsecs = 0;
         proto_tree_add_time_format(it_tree, hf_es_seconds, tvb, ioffset,
-                4, &ns, "Modification Time: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                4, &ns, "Modification Time: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
         ioffset = ioffset + 4;
     }
     if (iter_flags & DSI_MODIFICATION_TIMESTAMP) { /* Modification Timestamp */
         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
         ns.nsecs = 0;
         proto_tree_add_time_format(it_tree, hf_es_seconds, tvb, ioffset,
-                4, &ns, "Modification Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                4, &ns, "Modification Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
         ioffset = ioffset + 4;
         replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
         proto_tree_add_item(it_tree, hf_nds_replica_num, tvb, ioffset,
@@ -4466,7 +4466,7 @@ process_entry_info(proto_tree *it_tree, tvbuff_t *tvb, nds_val *values)
         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
         ns.nsecs = 0;
         proto_tree_add_time_format(it_tree, hf_es_seconds, tvb, ioffset,
-                4, &ns, "Creation Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                4, &ns, "Creation Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
         ioffset = ioffset + 4;
         replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
         proto_tree_add_item(it_tree, hf_nds_replica_num, tvb, ioffset,
@@ -5136,7 +5136,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                     ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                     ns.nsecs = 0;
                     proto_tree_add_time_format(atree, hf_es_seconds, tvb, ioffset,
-                                               4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                               4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                     ioffset = ioffset + 4;
                     replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                     proto_tree_add_item(atree, hf_nds_replica_num, tvb, ioffset,
@@ -5224,7 +5224,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                     ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                     ns.nsecs = 0;
                     proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                               4, &ns, "Creation Time: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                               4, &ns, "Creation Time: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                     ioffset = ioffset + 4;
                     replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                     proto_tree_add_item(ntree, hf_nds_replica_num, tvb, ioffset,
@@ -5362,7 +5362,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                         ns.nsecs = 0;
                         proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                                   4, &ns, "Modification Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                                   4, &ns, "Modification Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                         ioffset = ioffset + 4;
                         replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                         proto_tree_add_item(ntree, hf_nds_replica_num, tvb, ioffset,
@@ -5796,14 +5796,14 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                         ns.nsecs = 0;
                         proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                                   4, &ns, "Modification Time: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                                   4, &ns, "Modification Time: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                         ioffset = ioffset + 4;
                         break;
                     case 0x0000020:                 /* Modification Timestamp */
                         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                         ns.nsecs = 0;
                         proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                                   4, &ns, "Modification Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                                   4, &ns, "Modification Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                         ioffset = ioffset + 4;
                         replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                         proto_tree_add_item(ntree, hf_nds_replica_num, tvb, ioffset,
@@ -5818,7 +5818,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                         ns.nsecs = 0;
                         proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                                   4, &ns, "Creation Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                                   4, &ns, "Creation Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                         ioffset = ioffset + 4;
                         replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                         proto_tree_add_item(ntree, hf_nds_replica_num, tvb, ioffset,
@@ -5903,7 +5903,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                         ns.nsecs = 0;
                         proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                                   4, &ns, "Purge Time: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                                   4, &ns, "Purge Time: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                         ioffset = ioffset + 4;
                         break;
                     case 0x00020000:                /* Dereference Base Class */
@@ -6169,7 +6169,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                     ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                     ns.nsecs = 0;
                     proto_tree_add_time_format(sub1tree, hf_es_seconds, tvb, ioffset,
-                                               4, &ns, "Creation Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                               4, &ns, "Creation Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                     ioffset = ioffset + 4;
                     replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                     proto_tree_add_item(sub1tree, hf_nds_replica_num, tvb, ioffset,
@@ -6182,7 +6182,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                     ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                     ns.nsecs = 0;
                     proto_tree_add_time_format(sub1tree, hf_es_seconds, tvb, ioffset,
-                                               4, &ns, "Modification Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                               4, &ns, "Modification Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                     ioffset = ioffset + 4;
                     replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                     proto_tree_add_item(sub1tree, hf_nds_replica_num, tvb, ioffset,
@@ -6398,7 +6398,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                 ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                 ns.nsecs = 0;
                 proto_tree_add_time_format(ntree, hf_es_seconds, tvb, ioffset,
-                                           4, &ns, "Creation Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                           4, &ns, "Creation Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                 ioffset += 4;
                 replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                 proto_tree_add_item(ntree, hf_nds_replica_num, tvb, ioffset,
@@ -6430,7 +6430,7 @@ process_multivalues(proto_tree *ncp_tree, tvbuff_t *tvb, packet_info *pinfo, nds
                         ns.secs = tvb_get_letohl(tvb, ioffset);   /* Seconds */
                         ns.nsecs = 0;
                         proto_tree_add_time_format(sub2tree, hf_es_seconds, tvb, ioffset,
-                                                   4, &ns, "Timestamp: %s", abs_time_secs_to_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
+                                                   4, &ns, "Timestamp: %s", abs_time_secs_to_ep_str(ns.secs, ABSOLUTE_TIME_LOCAL, TRUE));
                         ioffset += 4;
                         replica_num = tvb_get_letohs(tvb, ioffset);   /* Replica */
                         proto_tree_add_item(sub2tree, hf_nds_replica_num, tvb, ioffset,
index fd9b90b2059af159b2dace51037124d224d936fa..b984ca01848c4bf252ef020c4d77fcc71a310861 100644 (file)
@@ -386,7 +386,7 @@ dissect_pktc_ap_reply(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int o
     proto_tree_add_uint_format(tree, hf_pktc_sec_param_lifetime, tvb, offset, 4,
                                tvb_get_ntohl(tvb, offset), "%s: %s",
                                proto_registrar_get_name(hf_pktc_sec_param_lifetime),
-                               time_secs_to_str(tvb_get_ntohl(tvb, offset)));
+                               time_secs_to_ep_str(tvb_get_ntohl(tvb, offset)));
     offset+=4;
 
     /* grace period */
index c18c239ae72420a13c53c4711ff82ef3424cf309..d505035ec239d4e8bf663516fa0780482e93dfab 100644 (file)
@@ -824,7 +824,7 @@ void radius_date(radius_attr_info_t* a, proto_tree* tree, packet_info *pinfo _U_
        time_ptr.nsecs = 0;
 
        proto_tree_add_time(tree, a->hf, tvb, offset, len, &time_ptr);
-       proto_item_append_text(avp_item, "%s", abs_time_to_str(&time_ptr, ABSOLUTE_TIME_LOCAL, TRUE));
+       proto_item_append_text(avp_item, "%s", abs_time_to_ep_str(&time_ptr, ABSOLUTE_TIME_LOCAL, TRUE));
 }
 
 /*
index 6a8cc2f57f424ca54c0adada6d390ac6625858c5..e9fd13cde3809203bd81b834bb5ea44e0d4a577f 100644 (file)
@@ -1064,9 +1064,9 @@ dissect_amf0_value_type(tvbuff_t *tvb, gint offset, proto_tree *tree, gboolean *
                 t.nsecs = (int)((iDoubleValue - 1000*(double)t.secs) * 1000000);
                 proto_tree_add_time(val_tree, hf_amf_date, tvb, iValueOffset, 8, &t);
                 iValueOffset += 8;
-                proto_item_append_text(ti, " %s", abs_time_to_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
+                proto_item_append_text(ti, " %s", abs_time_to_ep_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
                 if (parent_ti != NULL)
-                        proto_item_append_text(parent_ti, " %s", abs_time_to_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
+                        proto_item_append_text(parent_ti, " %s", abs_time_to_ep_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
                 /* time-zone */
                 iValueOffset += 2;
                 break;
@@ -1289,9 +1289,9 @@ dissect_amf3_value_type(tvbuff_t *tvb, gint offset, proto_tree *tree, proto_item
                         t.nsecs = (int)((iDoubleValue - 1000*(double)t.secs) * 1000000);
                         proto_tree_add_time(val_tree, hf_amf_date, tvb, iValueOffset, 8, &t);
                         iValueOffset += 8;
-                        proto_item_append_text(ti, "%s", abs_time_to_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
+                        proto_item_append_text(ti, "%s", abs_time_to_ep_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
                         if (parent_ti != NULL)
-                                proto_item_append_text(parent_ti, "%s", abs_time_to_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
+                                proto_item_append_text(parent_ti, "%s", abs_time_to_ep_str(&t, ABSOLUTE_TIME_LOCAL, TRUE));
                 } else {
                         /* the upper 28 bits of the integer value are an object reference index */
                         proto_tree_add_uint(val_tree, hf_amf_object_reference, tvb, iValueOffset, iValueLength, iIntegerValue >> 1);
index 717d132f8c7e61ce65aeace86bd34a72e42eb436..0282fe465a813b1046e432667f25bf7f99a00ffc 100644 (file)
@@ -1006,7 +1006,7 @@ tsn_tree(sctp_tsn_t *t, proto_item *tsn_item, packet_info *pinfo,
                                       (*r)->framenum,
                                       "This TSN was retransmitted in frame %u (%s seconds after this frame)",
                                       (*r)->framenum,
-                                      rel_time_to_secs_str(&rto));
+                                      rel_time_to_secs_ep_str(&rto));
       PROTO_ITEM_SET_GENERATED(pi);
       r = &(*r)->next;
     }
index 86f094286ce1b190c92c2b309a598715b07b1e9c..35b09734be1bb316c75aa2a667e0133808a4db4a 100644 (file)
@@ -1970,7 +1970,7 @@ dissect_fastser_frame(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, int o
             proto_tree_add_item(fastser_tree, hf_selfm_fastser_unsresp_doy, tvb, offset, 2, ENC_BIG_ENDIAN);
             proto_tree_add_item(fastser_tree, hf_selfm_fastser_unsresp_year, tvb, offset+2, 2, ENC_BIG_ENDIAN);
             proto_tree_add_item(fastser_tree, hf_selfm_fastser_unsresp_todms, tvb, offset+4, 4, ENC_BIG_ENDIAN);
-            proto_tree_add_text(fastser_tree, tvb, offset+4, 4, "Time of Day (decoded): %s", time_msecs_to_str(tod_ms));
+            proto_tree_add_text(fastser_tree, tvb, offset+4, 4, "Time of Day (decoded): %s", time_msecs_to_ep_str(tod_ms));
             offset += 8;
 
             /* Build element tree */
@@ -2011,7 +2011,7 @@ dissect_fastser_frame(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, int o
                 proto_tree_add_item(fastser_element_tree, hf_selfm_fastser_unsresp_elmt_idx, tvb, offset, 1, ENC_BIG_ENDIAN);
                 proto_tree_add_item(fastser_element_tree, hf_selfm_fastser_unsresp_elmt_ts_ofs, tvb, offset+1, 3, ENC_NA);
                 proto_tree_add_text(fastser_element_tree, tvb, offset+1, 3,
-                    "SER Element Timestamp Offset (decoded): %s", time_msecs_to_str(tod_ms + (elmt_ts_offset/1000)));
+                    "SER Element Timestamp Offset (decoded): %s", time_msecs_to_ep_str(tod_ms + (elmt_ts_offset/1000)));
                 proto_tree_add_uint(fastser_element_tree, hf_selfm_fastser_unsresp_elmt_status, tvb, elmt_status32_ofs, 4, elmt_status);
 
                 offset += 4;
index 66841e5bfbf3bb582a3c07b86d85c6aebdc16ca3..d6aef19663bfb9460b78666ffdde9d5fa78ccb21 100644 (file)
@@ -619,7 +619,7 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
                proto_tree_add_uint_format_value(tree, hf_periodicity, tvb, offset, 4,
                    periodicity,
                    "%s",
-                   time_msecs_to_str(periodicity));
+                   time_msecs_to_ep_str(periodicity));
                offset += 4;
 
                /* server name */
@@ -726,7 +726,7 @@ dissect_mailslot_browse(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
                proto_tree_add_uint_format_value(tree, hf_server_uptime,
                    tvb, offset, 4, uptime,
                    "%s",
-                   time_msecs_to_str(uptime));
+                   time_msecs_to_ep_str(uptime));
                offset += 4;
 
                /* next 4 bytes must be zero */
@@ -886,7 +886,7 @@ dissect_mailslot_lanman(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tr
                proto_tree_add_uint_format_value(tree, hf_periodicity, tvb, offset, 2,
                    periodicity,
                    "%s",
-                   time_msecs_to_str(periodicity));
+                   time_msecs_to_ep_str(periodicity));
                offset += 2;
 
                /* server name */
index 9b3f3bc3c8899ae2612b7b18b0fab3f66462eaab..3e13112064a6bdb70a5591e9fb55aa04092ad141 100644 (file)
@@ -514,7 +514,7 @@ add_reltime(tvbuff_t *tvb, int offset, int count _U_, packet_info *pinfo _U_,
        nstime.nsecs = 0;
        proto_tree_add_time_format_value(tree, hf_index, tvb, offset, 4,
            &nstime, "%s",
-           time_secs_to_str( (gint32) nstime.secs));
+           time_secs_to_ep_str( (gint32) nstime.secs));
        offset += 4;
        return offset;
 }
@@ -648,11 +648,11 @@ add_tzoffset(tvbuff_t *tvb, int offset, int count _U_, packet_info *pinfo _U_,
        if (tzoffset < 0) {
                proto_tree_add_int_format_value(tree, hf_tzoffset, tvb, offset, 2,
                    tzoffset, "%s east of UTC",
-                   time_secs_to_str(-tzoffset*60));
+                   time_secs_to_ep_str(-tzoffset*60));
        } else if (tzoffset > 0) {
                proto_tree_add_int_format_value(tree, hf_tzoffset, tvb, offset, 2,
                    tzoffset, "%s west of UTC",
-                   time_secs_to_str(tzoffset*60));
+                   time_secs_to_ep_str(tzoffset*60));
        } else {
                proto_tree_add_int_format_value(tree, hf_tzoffset, tvb, offset, 2,
                    tzoffset, "at UTC");
index c29789740d2a5069c2a8036faac7f292dd157c84..cac70eb19fcb2e8223f75b3ec5b7b66601fdf5de 100644 (file)
@@ -4980,7 +4980,7 @@ smbext20_timeout_msecs_to_str(gint32 timeout)
                return buf;
        }
 
-       return time_msecs_to_str(timeout);
+       return time_msecs_to_ep_str(timeout);
 }
 
 static int
index 585b6a0e840e4596e757ecf00d88a994ed9e15da..72c95098ea6c5d386ed49770746144287125c8de 100644 (file)
@@ -1329,7 +1329,7 @@ dissect_snmp_engineid(proto_tree *tree, tvbuff_t *tvb, int offset, int len)
            ts.nsecs = 0;
            proto_tree_add_time_format_value(tree, hf_snmp_engineid_time, tvb, offset+4, 4,
                                             &ts, "%s",
-                                            abs_time_secs_to_str(seconds, ABSOLUTE_TIME_LOCAL, TRUE));
+                                            abs_time_secs_to_ep_str(seconds, ABSOLUTE_TIME_LOCAL, TRUE));
            offset+=8;
            len_remain=0;
          }
index 6c74711b0e200be195f90563a7a34f6a609b8e7e..3743950ed383d93ff6cf7d9525e24bd2029e3da7 100644 (file)
@@ -306,7 +306,7 @@ dissect_sv_UtcTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_,
        ts.secs = seconds;
        ts.nsecs = nanoseconds;
 
-       ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
+       ptime = abs_time_to_ep_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
 
        if(hf_index >= 0)
        {
index 694773939de2c0272366742831efe7c4d89667c4..22255e0b66b946c53a68306024bacc0cbdfdf0d8 100644 (file)
@@ -70,7 +70,7 @@ dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         guint32 delta_seconds = tvb_get_ntohl(tvb, 0);
         proto_tree_add_uint_format(time_tree, hf_time_time, tvb, 0, 4,
                 delta_seconds, "%s",
-                abs_time_secs_to_str(delta_seconds-2208988800U, time_display_type, TRUE));
+                abs_time_secs_to_ep_str(delta_seconds-2208988800U, time_display_type, TRUE));
     }
 }
 
index ec6bf6efca90e55d8d452572b2657ca2cf99ec7a..f6533745f4ce5c3b0301cfa598ae0bdb9f318989 100644 (file)
@@ -245,7 +245,7 @@ smex_time_to_string (int pb5_days_since_midnight_9_10_oct_1995, int pb5_seconds,
     t.secs = (pb5_days_since_midnight_9_10_oct_1995 * 86400) + pb5_seconds + utcdiff;
     t.nsecs = pb5_milliseconds*1000000; /* msecs to nsecs */
 
-    return abs_time_to_str(&t, ABSOLUTE_TIME_DOY_UTC, TRUE);
+    return abs_time_to_ep_str(&t, ABSOLUTE_TIME_DOY_UTC, TRUE);
 }
 
 
index 07b82a8a595ec5576eabb43baf82f59c64251937..7459b5f4718b706defea1892e57a4863b7eaf643 100644 (file)
@@ -218,7 +218,7 @@ dissect_whoent(tvbuff_t *tvb, int offset, proto_tree *tree)
                idle_secs = tvb_get_ntohl(tvb, line_offset);
                proto_tree_add_uint_format(whoent_tree, hf_who_idle, tvb,
                    line_offset, 4, idle_secs, "Idle: %s",
-                   time_secs_to_str(idle_secs));
+                   time_secs_to_ep_str(idle_secs));
                line_offset += 4;
 
                whoent_num++;
index 487ca583efb8cee733ed49d4298d34da0472c1a3..4284000acc379564b1b7fca84bd8cd1ccebb0e99 100644 (file)
@@ -1811,7 +1811,7 @@ add_headers (proto_tree *tree, tvbuff_t *tvb, int hf, packet_info *pinfo)
                                                         tvb, hdr_start, hdr_len + val_len,
                                                         "Requesting Time Of Day");
                         } else {
-                            val_str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
+                            val_str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
                             ti = proto_tree_add_string (wsp_headers,
                                                         hf_hdr_x_wap_tod,
                                                         tvb, hdr_start, hdr_len + val_len, val_str);
@@ -2856,12 +2856,12 @@ wkh_ ## underscored(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
         if (val_id <= 4) { /* Length field already parsed by macro! */ \
             get_date_value(val, tvb, off, len, ok); \
             if (ok) { \
-                str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
+                str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
                 tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \
                 ti = proto_tree_add_string(tree, hf_hdr_ ## underscored, \
                         tvb, hdr_start, offset - hdr_start, str); \
                 /* BEHOLD: do NOT try to free str, as \
-                 * abs_time_secs_to_str() returns wmem_allocated data */ \
+                 * abs_time_secs_to_ep_str() returns wmem_allocated data */ \
             } \
         } \
     wkh_4_End(hf_hdr_ ## underscored); \
@@ -2891,12 +2891,12 @@ wkh_ ## underscored(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
         if (val_id <= 4) { /* Length field already parsed by macro! */ \
             get_date_value(val, tvb, off, len, ok); \
             if (ok) { \
-                str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
+                str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
                 tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \
                 ti = proto_tree_add_string(tree, hf_hdr_ ## underscored, \
                         tvb, hdr_start, offset - hdr_start, str); \
                 /* BEHOLD: do NOT try to free str, as \
-                 * abs_time_secs_to_str() returns wmem_allocated data */ \
+                 * abs_time_secs_to_ep_str() returns wmem_allocated data */ \
             } \
         } \
     wkh_4_End(hf_hdr_ ## underscored); \
@@ -2944,7 +2944,7 @@ wkh_ ## underscored(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
                             tvb, hdr_start, offset - hdr_start, \
                             "Requesting Time Of Day"); \
                 } else { \
-                    str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
+                    str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE); \
                     tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); \
                     ti = proto_tree_add_string(tree, hf_hdr_ ## underscored, \
                             tvb, hdr_start, offset - hdr_start, str); \
@@ -3592,11 +3592,11 @@ wkh_profile_warning(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_i
                         get_date_value(val, tvb, off, len, ok);
                         if (ok) { /* Valid warn-text string */
                             off += len;
-                            val_str = abs_time_secs_to_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
+                            val_str = abs_time_secs_to_ep_str(val, ABSOLUTE_TIME_LOCAL, TRUE);
                             str = wmem_strdup_printf(wmem_packet_scope(), "; date=%s", val_str);
                             proto_item_append_string(ti, str);
                             /* BEHOLD: do NOT try to free str, as \
-                             * abs_time_secs_to_str() returns wmem_allocated data */ \
+                             * abs_time_secs_to_ep_str() returns wmem_allocated data */ \
                         }
                     }
                 }
index 5c4f5e8b659b3c05b65b01d06ace75c6d8ec97bf..5964e6d9e153be39f28c35c8939b2b744b938c53 100644 (file)
@@ -1485,7 +1485,7 @@ decode_zcl_appl_stats_utc_time(gchar *s, guint32 value)
         g_snprintf(s, ITEM_LABEL_LENGTH, "Invalid UTC Time");
     else {
         value += ZBEE_ZCL_NSTIME_UTC_OFFSET;
-        g_snprintf(s, ITEM_LABEL_LENGTH, "%s", abs_time_secs_to_str (value, ABSOLUTE_TIME_LOCAL, TRUE));
+        g_snprintf(s, ITEM_LABEL_LENGTH, "%s", abs_time_secs_to_ep_str (value, ABSOLUTE_TIME_LOCAL, TRUE));
     }
 } /* decode_zcl_appl_stats_utc_time */
 
index ef803ae99598051b63c9378893f59abde9a3fd22..f36657478447a6f03a5aa28545444247bd25ad94 100644 (file)
@@ -406,7 +406,7 @@ decode_zcl_msg_start_time(gchar *s, guint32 value)
         g_snprintf(s, ITEM_LABEL_LENGTH, "Now");
     else {
         value += ZBEE_ZCL_NSTIME_UTC_OFFSET;
-        g_snprintf(s, ITEM_LABEL_LENGTH, "%s", abs_time_secs_to_str (value, ABSOLUTE_TIME_LOCAL, TRUE));
+        g_snprintf(s, ITEM_LABEL_LENGTH, "%s", abs_time_secs_to_ep_str (value, ABSOLUTE_TIME_LOCAL, TRUE));
     }
 } /* decode_zcl_msg_start_time */
 
index e32a482173f5850aa0ad1a075466fafdcdbdbc71..16a946f646e32049cd2849c1a0ccaaaa64981d26 100644 (file)
@@ -330,7 +330,7 @@ absolute_val_repr_len(fvalue_t *fv, ftrepr_t rtype _U_)
 {
        gchar *rep;
 
-       rep = abs_time_to_str(&fv->value.time, ABSOLUTE_TIME_LOCAL,
+       rep = abs_time_to_ep_str(&fv->value.time, ABSOLUTE_TIME_LOCAL,
            rtype == FTREPR_DISPLAY);
        return (int)strlen(rep) + 2;    /* 2 for opening and closing quotes */
 }
@@ -339,7 +339,7 @@ static void
 absolute_val_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf)
 {
        sprintf(buf, "\"%s\"",
-           abs_time_to_str(&fv->value.time, ABSOLUTE_TIME_LOCAL,
+           abs_time_to_ep_str(&fv->value.time, ABSOLUTE_TIME_LOCAL,
                rtype == FTREPR_DISPLAY));
 }
 
@@ -348,14 +348,14 @@ relative_val_repr_len(fvalue_t *fv, ftrepr_t rtype _U_)
 {
        gchar *rep;
 
-       rep = rel_time_to_secs_str(&fv->value.time);
+       rep = rel_time_to_secs_ep_str(&fv->value.time);
        return (int)strlen(rep);
 }
 
 static void
 relative_val_to_repr(fvalue_t *fv, ftrepr_t rtype _U_, char *buf)
 {
-       strcpy(buf, rel_time_to_secs_str(&fv->value.time));
+       strcpy(buf, rel_time_to_secs_ep_str(&fv->value.time));
 }
 
 void
index 63d875535db636c931652064d9924a9b250f6f5b..456b5c28609ef0de8f4f4c66d964e4356daf70ea 100644 (file)
@@ -49,7 +49,7 @@ WS_DLL_PUBLIC void guids_add_guid(const e_guid_t *guid, const gchar *name);
 WS_DLL_PUBLIC const gchar *guids_get_guid_name(const e_guid_t *guid);
 
 /* resolve GUID to name (or if unknown to hex string) */
-/* (if you need hex string only, use guid_to_str instead) */
+/* (if you need hex string only, use guid_to_ep_str instead) */
 WS_DLL_PUBLIC const gchar* guids_resolve_guid_to_str(const e_guid_t *guid);
 
 /* add a UUID (dcerpc_init_uuid() will call this too) */
@@ -59,7 +59,7 @@ WS_DLL_PUBLIC const gchar* guids_resolve_guid_to_str(const e_guid_t *guid);
 #define guids_get_uuid_name(uuid) guids_get_guid_name((e_guid_t *) (uuid))
 
 /* resolve UUID to name (or if unknown to hex string) */
-/* (if you need hex string only, use guid_to_str instead) */
+/* (if you need hex string only, use guid_to_ep_str instead) */
 #define guids_resolve_uuid_to_str(uuid) guids_resolve_guid_to_str((e_guid_t *) (uuid))
 
 #endif /* __GUID_UTILS_H__ */
index 5a45d58fdcae9b3b303f3ec5fb56c861cd8bf2f6..f1952e3a65b28e8175bc48dd1bd07d3eb2d28455 100644 (file)
@@ -615,7 +615,7 @@ print_pdml_geninfo(proto_tree *tree, FILE *fh)
     /* Print geninfo.timestamp */
     fprintf(fh,
             "    <field name=\"timestamp\" pos=\"0\" show=\"%s\" showname=\"Captured Time\" value=\"%d.%09d\" size=\"%u\"/>\n",
-            abs_time_to_str(timestamp, ABSOLUTE_TIME_LOCAL, TRUE), (int) timestamp->secs, timestamp->nsecs, frame_finfo->length);
+            abs_time_to_ep_str(timestamp, ABSOLUTE_TIME_LOCAL, TRUE), (int) timestamp->secs, timestamp->nsecs, frame_finfo->length);
 
     /* Print geninfo end */
     fprintf(fh,
index 2aa22cc802ab03e8892e57e5168ffc1c9dbf4e84..e822dde31af2832bbc4b31d222c0ce4693857968 100644 (file)
@@ -3884,14 +3884,14 @@ proto_custom_set(proto_tree* tree, const int field_id, gint occurrence,
 
                        case FT_ABSOLUTE_TIME:
                                offset_r += protoo_strlcpy(result+offset_r,
-                                                          abs_time_to_str((const nstime_t *)fvalue_get(&finfo->value),
+                                                          abs_time_to_ep_str((const nstime_t *)fvalue_get(&finfo->value),
                                                                           (absolute_time_display_e)hfinfo->display, TRUE),
                                                           size-offset_r);
                                break;
 
                        case FT_RELATIVE_TIME:
                                offset_r += protoo_strlcpy(result+offset_r,
-                                                          rel_time_to_secs_str((const nstime_t *)fvalue_get(&finfo->value)),
+                                                          rel_time_to_secs_ep_str((const nstime_t *)fvalue_get(&finfo->value)),
                                                           size-offset_r);
                                break;
 
@@ -4003,7 +4003,7 @@ proto_custom_set(proto_tree* tree, const int field_id, gint occurrence,
 
                        case FT_GUID:
                                offset_r += protoo_strlcpy(result+offset_r,
-                                                          guid_to_str((e_guid_t *)fvalue_get(&finfo->value)),
+                                                          guid_to_ep_str((e_guid_t *)fvalue_get(&finfo->value)),
                                                           size-offset_r);
                                break;
 
@@ -5520,14 +5520,14 @@ proto_item_fill_label(field_info *fi, gchar *label_str)
 
                case FT_ABSOLUTE_TIME:
                        label_fill(label_str, 0, hfinfo,
-                                  abs_time_to_str((const nstime_t *)fvalue_get(&fi->value),
+                                  abs_time_to_ep_str((const nstime_t *)fvalue_get(&fi->value),
                                                (absolute_time_display_e)hfinfo->display, TRUE));
                        break;
 
                case FT_RELATIVE_TIME:
                        g_snprintf(label_str, ITEM_LABEL_LENGTH,
                                   "%s: %s seconds", hfinfo->name,
-                                  rel_time_to_secs_str((const nstime_t *)fvalue_get(&fi->value)));
+                                  rel_time_to_secs_ep_str((const nstime_t *)fvalue_get(&fi->value)));
                        break;
 
                case FT_IPXNET:
@@ -5578,7 +5578,7 @@ proto_item_fill_label(field_info *fi, gchar *label_str)
 
                case FT_GUID:
                        guid = (e_guid_t *)fvalue_get(&fi->value);
-                       label_fill(label_str, 0, hfinfo, guid_to_str(guid));
+                       label_fill(label_str, 0, hfinfo, guid_to_ep_str(guid));
                        break;
 
                case FT_OID:
index 676c97d14e3816abcff7745472c41fd7e512b25f..885d9fb124252f02d4b7909dc548dc793d781883 100644 (file)
@@ -313,16 +313,6 @@ guint32_to_str_buf(guint32 u, gchar *buf, int buf_len) {
        uint_to_str_back(bp, u);
 }
 
-gchar *
-guint32_to_str(const guint32 u) {
-       int str_len = 16; /* guint32_to_str_buf_len(u)+1; */
-
-       gchar *bp = (gchar *)ep_alloc(str_len);
-       guint32_to_str_buf(u, bp, str_len);
-
-       return bp;
-}
-
 #define        PLURALIZE(n)    (((n) > 1) ? "s" : "")
 #define        COMMA(do_it)    ((do_it) ? ", " : "")
 
@@ -343,7 +333,7 @@ guint32_to_str(const guint32 u) {
  * If time is negative, add a '-' to all non-null components.
  */
 static void
-time_secs_to_str_buf(gint32 time_val, const guint32 frac, const gboolean is_nsecs,
+time_secs_to_ep_str_buf(gint32 time_val, const guint32 frac, const gboolean is_nsecs,
                emem_strbuf_t *buf)
 {
        int hours, mins, secs;
@@ -394,7 +384,7 @@ time_secs_to_str_buf(gint32 time_val, const guint32 frac, const gboolean is_nsec
 }
 
 gchar *
-time_secs_to_str(const gint32 time_val)
+time_secs_to_ep_str(const gint32 time_val)
 {
        emem_strbuf_t *buf;
 
@@ -405,12 +395,12 @@ time_secs_to_str(const gint32 time_val)
                return buf->str;
        }
 
-       time_secs_to_str_buf(time_val, 0, FALSE, buf);
+       time_secs_to_ep_str_buf(time_val, 0, FALSE, buf);
        return buf->str;
 }
 
 static void
-time_secs_to_str_buf_unsigned(guint32 time_val, const guint32 frac, const gboolean is_nsecs,
+time_secs_to_ep_str_buf_unsigned(guint32 time_val, const guint32 frac, const gboolean is_nsecs,
                emem_strbuf_t *buf)
 {
        int hours, mins, secs;
@@ -447,7 +437,7 @@ time_secs_to_str_buf_unsigned(guint32 time_val, const guint32 frac, const gboole
 }
 
 gchar *
-time_secs_to_str_unsigned(const guint32 time_val)
+time_secs_to_ep_str_unsigned(const guint32 time_val)
 {
        emem_strbuf_t *buf;
 
@@ -458,13 +448,13 @@ time_secs_to_str_unsigned(const guint32 time_val)
                return buf->str;
        }
 
-       time_secs_to_str_buf_unsigned(time_val, 0, FALSE, buf);
+       time_secs_to_ep_str_buf_unsigned(time_val, 0, FALSE, buf);
        return buf->str;
 }
 
 
 gchar *
-time_msecs_to_str(gint32 time_val)
+time_msecs_to_ep_str(gint32 time_val)
 {
        emem_strbuf_t *buf;
        int msecs;
@@ -487,7 +477,7 @@ time_msecs_to_str(gint32 time_val)
                time_val /= 1000;
        }
 
-       time_secs_to_str_buf(time_val, msecs, FALSE, buf);
+       time_secs_to_ep_str_buf(time_val, msecs, FALSE, buf);
        return buf->str;
 }
 
@@ -557,7 +547,7 @@ static const gchar *get_zonename(struct tm *tmp) {
 }
 
 gchar *
-abs_time_to_str(const nstime_t *abs_time, const absolute_time_display_e fmt,
+abs_time_to_ep_str(const nstime_t *abs_time, const absolute_time_display_e fmt,
                gboolean show_zone)
 {
        struct tm *tmp = NULL;
@@ -641,7 +631,7 @@ abs_time_to_str(const nstime_t *abs_time, const absolute_time_display_e fmt,
 }
 
 gchar *
-abs_time_secs_to_str(const time_t abs_time, const absolute_time_display_e fmt,
+abs_time_secs_to_ep_str(const time_t abs_time, const absolute_time_display_e fmt,
                gboolean show_zone)
 {
        struct tm *tmp = NULL;
@@ -825,7 +815,7 @@ display_epoch_time(gchar *buf, int buflen, const time_t sec, gint32 frac,
  * Display a relative time as days/hours/minutes/seconds.
  */
 gchar *
-rel_time_to_str(const nstime_t *rel_time)
+rel_time_to_ep_str(const nstime_t *rel_time)
 {
        emem_strbuf_t *buf;
        gint32 time_val;
@@ -855,7 +845,7 @@ rel_time_to_str(const nstime_t *rel_time)
                time_val = (gint) -rel_time->secs;
        }
 
-       time_secs_to_str_buf(time_val, nsec, TRUE, buf);
+       time_secs_to_ep_str_buf(time_val, nsec, TRUE, buf);
        return buf->str;
 }
 
@@ -865,7 +855,7 @@ rel_time_to_str(const nstime_t *rel_time)
  * Display a relative time as seconds.
  */
 gchar *
-rel_time_to_secs_str(const nstime_t *rel_time)
+rel_time_to_secs_ep_str(const nstime_t *rel_time)
 {
        gchar *buf;
 
@@ -983,24 +973,6 @@ decode_bitfield_value(char *buf, const guint32 val, const guint32 mask, const in
        return p;
 }
 
-/* Generate a string describing a Boolean bitfield (a one-bit field that
-   says something is either true or false). */
-const char *
-decode_boolean_bitfield(const guint32 val, const guint32 mask, const int width,
-               const char *truedesc, const char *falsedesc)
-{
-       char *buf;
-       char *p;
-
-       buf=(char *)ep_alloc(1025); /* is this a bit overkill? */
-       p = decode_bitfield_value(buf, val, mask, width);
-       if (val & mask)
-               strcpy(p, truedesc);
-       else
-               strcpy(p, falsedesc);
-       return buf;
-}
-
 /* Generate a string describing a numeric bitfield (an N-bit field whose
    value is just a number). */
 const char *
@@ -1066,7 +1038,7 @@ ip_to_str_buf(const guint8 *ad, gchar *buf, const int buf_len)
        *b=0;
 }
 
-gchar* guid_to_str(const e_guid_t *guid) {
+gchar* guid_to_ep_str(const e_guid_t *guid) {
        gchar *buf;
 
        buf=(gchar *)ep_alloc(GUID_STR_LEN);
index cdb1adda581a9d3b3e046d1fccae676c25b79354..cf081c763fe404d26d20f3cc7e77f5e15d97a609 100644 (file)
@@ -75,22 +75,21 @@ extern gchar*       ipxnet_to_str_punct(const guint32 ad, const char punct);
 extern gchar*  tvb_vines_addr_to_str(tvbuff_t *tvb, const gint offset);
 WS_DLL_PUBLIC gchar*   eui64_to_str(const guint64 ad);
 WS_DLL_PUBLIC gchar*   tvb_eui64_to_str(tvbuff_t *tvb, const gint offset, const guint encoding);
-WS_DLL_PUBLIC gchar*   time_secs_to_str(const gint32 time_val);
-gchar* time_secs_to_str_unsigned(const guint32);
-WS_DLL_PUBLIC gchar*   time_msecs_to_str(gint32 time_val);
-WS_DLL_PUBLIC gchar*   abs_time_to_str(const nstime_t*, const absolute_time_display_e fmt,
+WS_DLL_PUBLIC gchar*   time_secs_to_ep_str(const gint32 time_val);
+gchar* time_secs_to_ep_str_unsigned(const guint32);
+WS_DLL_PUBLIC gchar*   time_msecs_to_ep_str(gint32 time_val);
+WS_DLL_PUBLIC gchar*   abs_time_to_ep_str(const nstime_t*, const absolute_time_display_e fmt,
     gboolean show_zone);
-WS_DLL_PUBLIC gchar*   abs_time_secs_to_str(const time_t, const absolute_time_display_e fmt,
+WS_DLL_PUBLIC gchar*   abs_time_secs_to_ep_str(const time_t, const absolute_time_display_e fmt,
     gboolean show_zone);
 WS_DLL_PUBLIC void     display_signed_time(gchar *, int, const gint32, gint32, const to_str_time_res_t);
 WS_DLL_PUBLIC void     display_epoch_time(gchar *, int, const time_t,  gint32, const to_str_time_res_t);
 
-extern gchar*  guint32_to_str(const guint32 u);
 extern void    guint32_to_str_buf(guint32 u, gchar *buf, int buf_len);
 
-WS_DLL_PUBLIC gchar*   rel_time_to_str(const nstime_t*);
-WS_DLL_PUBLIC gchar*   rel_time_to_secs_str(const nstime_t*);
-WS_DLL_PUBLIC gchar*   guid_to_str(const e_guid_t*);
+WS_DLL_PUBLIC gchar*   rel_time_to_ep_str(const nstime_t*);
+WS_DLL_PUBLIC gchar*   rel_time_to_secs_ep_str(const nstime_t*);
+WS_DLL_PUBLIC gchar*   guid_to_ep_str(const e_guid_t*);
 gchar* guid_to_str_buf(const e_guid_t*, gchar*, int);
 
 WS_DLL_PUBLIC char *decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value);
@@ -99,8 +98,6 @@ WS_DLL_PUBLIC char    *other_decode_bitfield_value(char *buf, const guint32 val, co
     const int width);
 WS_DLL_PUBLIC char     *decode_bitfield_value(char *buf, const guint32 val, const guint32 mask,
     const int width);
-WS_DLL_PUBLIC const char *decode_boolean_bitfield(const guint32 val, const guint32 mask, const int width,
-  const char *truedesc, const char *falsedesc);
 WS_DLL_PUBLIC const char *decode_numeric_bitfield(const guint32 val, const guint32 mask, const int width,
   const char *fmt);
 
index 50d3e04f584d13a39f2bb15a68452f3f8aa2384c..b2658828bb84b27c28852c884b8a0ccc57ed9d2b 100644 (file)
@@ -85,7 +85,7 @@ WSLUA_FUNCTION wslua_format_date(lua_State* LS) { /* Formats an absolute timesta
 
     then.secs = (guint32)floor(timestamp);
     then.nsecs = (guint32) ( (timestamp-(double)(then.secs))*1000000000);
-    str = abs_time_to_str(&then, ABSOLUTE_TIME_LOCAL, TRUE);
+    str = abs_time_to_ep_str(&then, ABSOLUTE_TIME_LOCAL, TRUE);
     lua_pushstring(LS,str);
 
     WSLUA_RETURN(1); /* A string with the formated date */
@@ -99,7 +99,7 @@ WSLUA_FUNCTION wslua_format_time(lua_State* LS) { /* Formats a relative timestam
 
     then.secs = (guint32)floor(timestamp);
     then.nsecs = (guint32) ( (timestamp-(double)(then.secs))*1000000000);
-    str = rel_time_to_str(&then);
+    str = rel_time_to_ep_str(&then);
     lua_pushstring(LS,str);
 
     WSLUA_RETURN(1); /* A string with the formated time */
index 5a6b2f3839bd237a401123f806e9d1e3f41c901c..d84cceb70fad7998f4b07c25d2489772f79b15b1 100644 (file)
@@ -2607,7 +2607,7 @@ pnio_ar_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pnio_ar_t *ar)
 
         sub_item = proto_tree_add_text(tree, tvb, 0, 0,
             "ARUUID:%s ContrMAC:%s ContrAlRef:0x%x DevMAC:%s DevAlRef:0x%x InCR:0x%x OutCR=0x%x",
-            guid_to_str((const e_guid_t*) &ar->aruuid),
+            guid_to_ep_str((const e_guid_t*) &ar->aruuid),
             ether_to_str((const guint8 *)ar->controllermac), ar->controlleralarmref,
             ether_to_str((const guint8 *)ar->devicemac), ar->devicealarmref,
             ar->inputframeid, ar->outputframeid);
@@ -6274,7 +6274,7 @@ dissect_ARData_block(tvbuff_t *tvb, int offset,
             u32ARDataStart = offset;
             offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep,
                             hf_pn_io_ar_uuid, &aruuid);
-            proto_item_append_text(ar_item, "ARUUID:%s", guid_to_str((const e_guid_t*) &aruuid));
+            proto_item_append_text(ar_item, "ARUUID:%s", guid_to_ep_str((const e_guid_t*) &aruuid));
             offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep,
                         hf_pn_io_ar_type, &u16ARType);
             offset = dissect_ARProperties(tvb, offset, pinfo, ar_tree, item, drep);
@@ -6392,7 +6392,7 @@ dissect_ARData_block(tvbuff_t *tvb, int offset,
             u32ARDataStart = offset;
             /*ARUUID */
             offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_ar_uuid, &aruuid);
-            proto_item_append_text(ar_item, "ARUUID:%s", guid_to_str((const e_guid_t*) &aruuid));
+            proto_item_append_text(ar_item, "ARUUID:%s", guid_to_ep_str((const e_guid_t*) &aruuid));
             /* CMInitiatorObjectUUID */
             offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_cminitiator_objectuuid, &uuid);
             /* ParameterServerObjectUUID */
@@ -9437,7 +9437,7 @@ pn_io_ar_conv_filter(packet_info *pinfo)
         "pn_io.ar_uuid == %s || "                                   /* ARUUID */
         "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s) || "   /* Alarm CR (contr -> dev) */
         "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s)",      /* Alarm CR (dev -> contr) */
-        guid_to_str((const e_guid_t*) &ar->aruuid),
+        guid_to_ep_str((const e_guid_t*) &ar->aruuid),
         ar->controlleralarmref, ether_to_str((const guint8 *)ar->controllermac),
         ar->devicealarmref, ether_to_str((const guint8 *)ar->devicemac));
     return buf;
@@ -9459,7 +9459,7 @@ pn_io_ar_conv_data_filter(packet_info *pinfo)
             "(pn_rt.frame_id == 0x%x) || (pn_rt.frame_id == 0x%x) || "
             "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s) || "           /* Alarm CR (contr -> dev) */
             "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s)",              /* Alarm CR (dev -> contr) */
-            guid_to_str((const e_guid_t*) &ar->aruuid),
+            guid_to_ep_str((const e_guid_t*) &ar->aruuid),
             ar->inputframeid, ar->outputframeid,
             ar->controlleralarmref, ether_to_str((const guint8 *)ar->controllermac),
             ar->devicealarmref, ether_to_str((const guint8 *)ar->devicemac));
@@ -9472,7 +9472,7 @@ pn_io_ar_conv_data_filter(packet_info *pinfo)
             "(pn_rt.frame_id == 0x%x && eth.src == %s && eth.dst == %s) || "    /* Output CR && contr MAC -> dev MAC */
             "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s) || "           /* Alarm CR (contr -> dev) */
             "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s)",              /* Alarm CR (dev -> contr) */
-            guid_to_str((const e_guid_t*) &ar->aruuid),
+            guid_to_ep_str((const e_guid_t*) &ar->aruuid),
             ar->inputframeid, ether_to_str((const guint8 *)ar->devicemac), ether_to_str((const guint8 *)ar->controllermac),
             ar->outputframeid, ether_to_str((const guint8 *)ar->controllermac), ether_to_str((const guint8 *)ar->devicemac),
             ar->controlleralarmref, ether_to_str((const guint8 *)ar->controllermac),
index 49c4ec3a6eaf1956917679549ab115373e183fee..57b07098c022e7e5747e30a6dadb2d23c6b74c31 100644 (file)
@@ -266,7 +266,7 @@ voip_calls_on_filter(GtkButton *button _U_, gpointer user_data _U_)
                                        h323info = (h323_calls_info_t *)listinfo->prot_info;
                                        g_string_append_printf(filter_string_fwd,
                                                "((h225.guid == %s || q931.call_ref == %x:%x || q931.call_ref == %x:%x)",
-                                               guid_to_str(&h323info->guid[0]),
+                                               guid_to_ep_str(&h323info->guid[0]),
                                                (guint8) (h323info->q931_crv & 0x00ff),
                                                (guint8)((h323info->q931_crv & 0xff00)>>8),
                                                (guint8) (h323info->q931_crv2 & 0x00ff),