aboutsummaryrefslogtreecommitdiffstats
path: root/epan/crypt/airpdcap_user.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/crypt/airpdcap_user.h')
-rw-r--r--epan/crypt/airpdcap_user.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/crypt/airpdcap_user.h b/epan/crypt/airpdcap_user.h
index aeca3f08c4..1ba30dd76a 100644
--- a/epan/crypt/airpdcap_user.h
+++ b/epan/crypt/airpdcap_user.h
@@ -78,6 +78,17 @@
/* */
/* */
/******************************************************************************/
+static inline gboolean memiszero (const void *ptr, size_t count) {
+ const guint8 *p = (const guint8 *)ptr;
+
+ while (count != 0) {
+ if (*p != 0)
+ return FALSE;
+ p++;
+ count--;
+ }
+ return TRUE;
+}
/******************************************************************************/
/* Type definitions */