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 #define guard.
[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
typedef struct {
11
const guint8 *ptr;
12
int len;
13
} vec_t;
14
15
extern int in_cksum(const vec_t *vec, int veclen);
16
17
extern guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum);
18
19
#endif /* __IN_CKSUM_H__ */