xref: /freebsd/sbin/ipf/libipf/msgdsize.c (revision 349cc55c9796c4596a5b9904cd3281af295f878f)
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