git.samba.org
/
metze
/
wireshark
/
wip.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix a bounds checking problem when handed an invalid SIP packet, as
[metze/wireshark/wip.git]
/
in_cksum.h
1
/* in_cksum.h
2
* Declaration of Internet checksum routine.
3
*
4
* $Id: in_cksum.h,v 1.1 2000/12/13 02:24:22 guy Exp $
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);