repo.or.cz
/
wireshark-wip.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git]
/
epan
/
in_cksum.h
blob
3a7ff56310bd3deb5c9b84afc2504b600ded2edc
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__ */