summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/msgdsize.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/lib/msgdsize.c')
-rw-r--r--contrib/ipfilter/lib/msgdsize.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/ipfilter/lib/msgdsize.c b/contrib/ipfilter/lib/msgdsize.c
new file mode 100644
index 0000000..9bdc584
--- /dev/null
+++ b/contrib/ipfilter/lib/msgdsize.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2012 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * $Id: msgdsize.c,v 1.2.4.3 2012/07/22 08:04:24 darren_r Exp $
+ */
+
+#include "ipf.h"
+
+size_t msgdsize(orig)
+ mb_t *orig;
+{
+ size_t sz = 0;
+ mb_t *m;
+
+ for (m = orig; m != NULL; m = m->mb_next)
+ sz += m->mb_len;
+ return sz;
+}
OpenPOWER on IntegriCloud