forked from osmocom/wireshark
From Wesley
fix "decode as" for time protocol https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9563 svn path=/trunk/; revision=54138
This commit is contained in:
parent
df30bf95ea
commit
a1defaa4e2
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
time_tree = proto_item_add_subtree(ti, ett_time);
|
||||
|
||||
proto_tree_add_text(time_tree, tvb, 0, 0,
|
||||
pinfo->srcport==TIME_PORT ? "Type: Response":"Type: Request");
|
||||
if (pinfo->srcport == TIME_PORT) {
|
||||
pinfo->srcport==pinfo->match_uint ? "Type: Response":"Type: Request");
|
||||
if (pinfo->srcport == pinfo->match_uint) {
|
||||
/* seconds since 1900-01-01 00:00:00 GMT, *not* 1970 */
|
||||
guint32 delta_seconds = tvb_get_ntohl(tvb, 0);
|
||||
proto_tree_add_uint_format(time_tree, hf_time_time, tvb, 0, 4,
|
||||
|
|
Loading…
Reference in a new issue