MSWSP: use GuidPropertySet_find_guid() in parse_CFullPropSpec()
[wireshark-wip.git] / asn1 / goose / goose.cnf
bloba855a7fec718022e11014d285ce6c73118fa8be1
1 # goose.cnf
2 # goose conformation file
4 # $Id$
6 #.MODULE_IMPORT
8 #.EXPORTS
10 #.PDU
12 #.NO_EMIT
14 #.TYPE_RENAME
17 #.FN_BODY UtcTime
19         guint32 len;
20         guint32 seconds;
21         guint32 fraction;
22         guint32 nanoseconds;
23         nstime_t ts;
24         gchar * ptime;
26         len = tvb_length_remaining(tvb, offset);
28         if(len != 8)
29         {
30                 proto_tree_add_expert(tree, actx->pinfo, &ei_goose_mal_utctime, tvb, offset, len);
31                 if(hf_index >= 0)
32                 {
33                         proto_tree_add_string(tree, hf_index, tvb, offset, len, "????");
34                 }
35                 return offset;
36         }
38         seconds = tvb_get_ntohl(tvb, offset);
39         fraction = tvb_get_ntoh24(tvb, offset+4) * 0x100; /* Only 3 bytes are recommended */
40         nanoseconds = (guint32)( ((guint64)fraction * G_GINT64_CONSTANT(1000000000U)) / G_GINT64_CONSTANT(0x100000000U) ) ;
42         ts.secs = seconds;
43         ts.nsecs = nanoseconds;
45         ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
47         if(hf_index >= 0)
48         {
49                 proto_tree_add_string(tree, hf_index, tvb, offset, len, ptime);
50         }
52         return offset;
56 #.TYPE_ATTR
57 UtcTime TYPE = FT_STRING DISPLAY = BASE_NONE
60 #.FIELD_RENAME
61 GetReferenceRequestPdu/offset getReferenceRequestPDU_offset
62 GSEMngtResponses/getGsReference gseMngtResponses_GetGSReference
63 GSEMngtResponses/getGoReference gseMngtResponses_GetGOReference
64 GSEMngtResponses/getGSSEDataOffset gseMngtResponses_GetGSSEDataOffset
65 GSEMngtResponses/getGOOSEElementNumber gseMngtResponses_GetGOOSEElementNumber
67 #.FIELD_ATTR
68 IECGoosePdu/stNum  TYPE = FT_UINT32  DISPLAY = BASE_DEC
69 IECGoosePdu/sqNum  TYPE = FT_UINT32  DISPLAY = BASE_DEC
71 #.END