xref: /freebsd/sbin/ipf/libipf/msgdsize.c (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1 /*
2  * Copyright (C) 2012 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id: msgdsize.c,v 1.2.4.3 2012/07/22 08:04:24 darren_r Exp $
7  */
8 
9 #include "ipf.h"
10 
11 size_t msgdsize(mb_t *orig)
12 {
13 	size_t sz = 0;
14 	mb_t *m;
15 
16 	for (m = orig; m != NULL; m = m->mb_next)
17 		sz += m->mb_len;
18 	return (sz);
19 }
20