git.samba.org
/
metze
/
wireshark
/
wip.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add Mike Garratt to the list of authors for (at the very least) his contributions...
[metze/wireshark/wip.git]
/
epan
/
in_cksum.h
1
/* in_cksum.h
2
* Declaration of Internet checksum routine.
3
*
4
* $Id$
5
*/
6
7
#ifndef __IN_CKSUM_H__
8
#define __IN_CKSUM_H__
9
10
#include "ws_symbol_export.h"
11
12
typedef struct {
13
const guint8 *ptr;
14
int len;
15
} vec_t;
16
17
WS_DLL_PUBLIC int in_cksum(const vec_t *vec, int veclen);
18
19
guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum);
20
21
#endif /* __IN_CKSUM_H__ */