diff options
Diffstat (limited to 'epan/dissectors/packet-mip6.c')
-rw-r--r-- | epan/dissectors/packet-mip6.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mip6.c b/epan/dissectors/packet-mip6.c index c0fdf99f61..55df45d015 100644 --- a/epan/dissectors/packet-mip6.c +++ b/epan/dissectors/packet-mip6.c @@ -2747,12 +2747,11 @@ dissect_pmip6_opt_ts(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * proto_item* ti; int option_len = tvb_reported_length(tvb)-2; int offset = 2; - const gchar *str; + char *str; opt_tree = mip6_fixed_option_header(tree, pinfo, tvb, proto_mip6_option_ts, ett_pmip6_opt_ts, &ti, option_len, PMIP6_TS_LEN); - str = tvb_mip6_fmt_ts(tvb,offset); - proto_tree_add_string(opt_tree, hf_pmip6_timestamp, tvb, offset, 8, str); + proto_tree_add_item_ret_time_string(opt_tree, hf_pmip6_timestamp, tvb, offset, 8, ENC_TIME_MIP6|ENC_BIG_ENDIAN, wmem_packet_scope(), &str); proto_item_append_text(ti, ": %s", str); return tvb_captured_length(tvb); @@ -4519,7 +4518,7 @@ proto_register_mip6(void) }, { &hf_pmip6_timestamp, { "Timestamp", "mip6.timestamp_tmp", - FT_STRING, BASE_NONE, NULL, 0, + FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0, NULL, HFILL } }, { &hf_pmip6_opt_lila_lla, |