aboutsummaryrefslogtreecommitdiffstats
path: root/in_cksum.h
blob: 53b274976febdc37e42741e9a9c7d3f5cc0e854e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* in_cksum.h
 * Declaration of  Internet checksum routine.
 *
 * $Id$
 */

typedef struct {
	const guint8 *ptr;
	int	len;
} vec_t;

extern int in_cksum(const vec_t *vec, int veclen);

extern guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum);