summaryrefslogtreecommitdiff
path: root/epan/guid-utils.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2006-03-19 20:45:45 +0000
committerGuy Harris <guy@alum.mit.edu>2006-03-19 20:45:45 +0000
commit7db8eea5c68284a468924639eecc2ca8959225d0 (patch)
tree8615d9607a760ce4721551cd031660083076cd49 /epan/guid-utils.h
parent624db0dc41ab9bad1bacbd95462d6dffa4afba61 (diff)
downloadwireshark-7db8eea5c68284a468924639eecc2ca8959225d0.tar.gz
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. svn path=/trunk/; revision=17676
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;