aboutsummaryrefslogtreecommitdiffstats
path: root/epan/guid-utils.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-19 20:45:45 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-19 20:45:45 +0000
commit32e8d766005e5b243a8c466054d5bc9a33cdccd7 (patch)
tree8615d9607a760ce4721551cd031660083076cd49 /epan/guid-utils.h
parent93cb8d5094845585646d5709c7a31a28e7a8e17f (diff)
Make the GUIDs in various data structures e_guid_t's rather than arrays
of 16 bytes. Use "sizeof" for the size of e_guid_t's, and use structure assignment to copy GUID values. Make functions such as append_h225ras_call() and new_h225ras_call() take pointers to e_guid_t's as arguments. Define GUID_LEN in epan/guid-utils.h and use it as the length of a GUID in a packet. (Note that "sizeof e_guid_t" is not guaranteed to be 16, although it is guaranteed to be the size of an e_guid_t.) When constructing a display filter that matches a GUID, use guid_to_str() to construct the string for the GUID. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17676 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/guid-utils.h')
-rw-r--r--epan/guid-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/guid-utils.h b/epan/guid-utils.h
index d80e2a6458..1448ec4ddb 100644
--- a/epan/guid-utils.h
+++ b/epan/guid-utils.h
@@ -28,6 +28,10 @@
#ifndef __GUID_UTILS_H__
#define __GUID_UTILS_H__
+#define GUID_LEN 16
+
+/* Note: this might be larger than GUID_LEN, so don't overlay data in packets
+ with this. */
typedef struct _e_guid_t {
guint32 data1;
guint16 data2;