forked from osmocom/wireshark
Use proto_tree_add_time() for hf_srvloc_authblkv2_timestamp. Fixes bug 81.
svn path=/trunk/; revision=14150
This commit is contained in:
parent
1111832d96
commit
94c071b115
|
@ -381,10 +381,13 @@ static int
|
|||
dissect_authblk_v2(tvbuff_t *tvb, int offset, proto_tree *tree)
|
||||
{
|
||||
guint16 length;
|
||||
nstime_t ts;
|
||||
|
||||
proto_tree_add_item(tree, hf_srvloc_authblkv2_bsd, tvb, offset, 2, FALSE);
|
||||
proto_tree_add_item(tree, hf_srvloc_authblkv2_len, tvb, offset+2, 2, FALSE);
|
||||
proto_tree_add_item(tree, hf_srvloc_authblkv2_timestamp, tvb, offset+4, 4, FALSE);
|
||||
ts.nsecs = 0;
|
||||
ts.secs = tvb_get_ntohl(tvb, offset + 4);
|
||||
proto_tree_add_time(tree, hf_srvloc_authblkv2_timestamp, tvb, offset+4, 4, &ts);
|
||||
length = tvb_get_ntohs(tvb, offset + 8);
|
||||
proto_tree_add_uint(tree, hf_srvloc_authblkv2_slpspilen, tvb, offset + 8, 2, length);
|
||||
offset += 10;
|
||||
|
|
Loading…
Reference in New Issue