some more review comments from Guy Harris and some other minor changes
[obnox/wireshark/wip.git] / in_cksum.h
1 /* in_cksum.h
2  * Declaration of  Internet checksum routine.
3  *
4  * $Id$
5  */
6
7 typedef struct {
8         const guint8 *ptr;
9         int     len;
10 } vec_t;
11
12 extern int in_cksum(const vec_t *vec, int veclen);
13
14 extern guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum);