if (tree) {
DebugLog(("tree != NULL\n"));
- ti = proto_tree_add_item(tree, proto_mmse, tvb, 0, -1, FALSE);
+ ti = proto_tree_add_item(tree, proto_mmse, tvb, 0, -1, ENC_NA);
proto_item_append_text(ti, ", Type: %s", message_type);
/* create display subtree for the protocol */
mmse_tree = proto_item_add_subtree(ti, ett_mmse);
if (tree) {
guint32 fwd_count, count1, count2;
proto_tree *subtree = NULL;
- proto_item *ti = NULL;
+ proto_item *tii = NULL;
/* 1. Forwarded-count-value := Integer-value */
fwd_count = get_integer_value(tvb, offset + count,
&count1);
count2 = get_encoded_strval(tvb,
offset + count + count1, &strval);
/* Now render the fields */
- ti = proto_tree_add_string_format(mmse_tree,
+ tii = proto_tree_add_string_format(mmse_tree,
hf_mmse_prev_sent_by,
tvb, offset - 1, 1 + count + length,
strval, "%s (Forwarded-count=%u)",
format_text(strval, strlen(strval)),
fwd_count);
- subtree = proto_item_add_subtree(ti,
+ subtree = proto_item_add_subtree(tii,
ett_mmse_hdr_details);
proto_tree_add_uint(subtree,
hf_mmse_prev_sent_by_fwd_count,
guint tval;
nstime_t tmptime;
proto_tree *subtree = NULL;
- proto_item *ti = NULL;
+ proto_item *tii = NULL;
/* 1. Forwarded-count-value := Integer-value */
fwd_count = get_integer_value(tvb, offset + count,
&count1);
&count2);
tmptime.secs = tval;
tmptime.nsecs = 0;
- strval = abs_time_to_str(&tmptime, FALSE);
+ strval = abs_time_to_str(&tmptime, ABSOLUTE_TIME_LOCAL,
+ TRUE);
/* Now render the fields */
tvb_ensure_bytes_exist(tvb, offset - 1, length + count + 1);
- ti = proto_tree_add_string_format(mmse_tree,
+ tii = proto_tree_add_string_format(mmse_tree,
hf_mmse_prev_sent_date,
tvb, offset - 1, 1 + count + length,
strval, "%s (Forwarded-count=%u)",
format_text(strval, strlen(strval)),
fwd_count);
- subtree = proto_item_add_subtree(ti,
+ subtree = proto_item_add_subtree(tii,
ett_mmse_hdr_details);
proto_tree_add_uint(subtree,
hf_mmse_prev_sent_date_fwd_count,
proto_tree_add_string_format(mmse_tree,
hf_mmse_ffheader, tvb, offset,
length + length2,
- (const char *) tvb_get_ptr(
- tvb, offset, length + length2),
+ tvb_get_ephemeral_string(tvb, offset,
+ length + length2),
"%s: %s",
format_text(strval, strlen(strval)),
format_text(strval2, strlen(strval2)));
},
{ &hf_mmse_date,
{ "Date", "mmse.date",
- FT_ABSOLUTE_TIME, BASE_NONE, NULL, 0x00,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x00,
"Arrival timestamp of the message or sending timestamp.",
HFILL
}
},
{ &hf_mmse_delivery_time_abs,
{ "X-Mms-Delivery-Time", "mmse.delivery_time.abs",
- FT_ABSOLUTE_TIME, BASE_NONE, NULL, 0x00,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x00,
"The time at which message delivery is desired.",
HFILL
}
},
{ &hf_mmse_expiry_abs,
{ "X-Mms-Expiry", "mmse.expiry.abs",
- FT_ABSOLUTE_TIME, BASE_NONE, NULL, 0x00,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x00,
"Time when message expires and need not be delivered anymore.",
HFILL
}
},
{ &hf_mmse_reply_charging_deadline_abs,
{ "X-Mms-Reply-Charging-Deadline", "mmse.reply_charging_deadline.abs",
- FT_ABSOLUTE_TIME, BASE_NONE, NULL, 0x00,
+ FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x00,
"The latest time of the recipient(s) to submit the Reply MM.",
HFILL
}