aboutsummaryrefslogtreecommitdiffstats
path: root/epan/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/packet.h')
-rw-r--r--epan/packet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h
index 6d52783431..7fcc67c929 100644
--- a/epan/packet.h
+++ b/epan/packet.h
@@ -75,6 +75,9 @@ typedef struct _packet_counts {
gint arp;
} packet_counts;
+/** Number of packet counts. */
+#define PACKET_COUNTS_SIZE sizeof(packet_counts) / sizeof (gint)
+
/* Types of character encodings */
typedef enum {
CHAR_ASCII = 0, /* ASCII */