Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
wsutil
crc7.h
Go to the documentation of this file.
1
23
#ifndef __CRC7__H__
24
#define __CRC7__H__
25
26
#include <wireshark.h>
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
36
#define CRC_ALGO_TABLE_DRIVEN 1
37
43
static
inline
uint8_t crc7init(
void
)
44
{
45
return
0x00 << 1;
46
}
47
48
57
WS_DLL_PUBLIC uint8_t
crc7update
(uint8_t crc,
const
unsigned
char
*data,
int
data_len);
58
59
66
static
inline
uint8_t crc7finalize(uint8_t crc)
67
{
68
return
(crc >> 1) ^ 0x00;
69
}
70
71
72
#ifdef __cplusplus
73
}
/* closing brace for extern "C" */
74
#endif
75
76
#endif
/* __CRC7__H__ */
crc7update
WS_DLL_PUBLIC uint8_t crc7update(uint8_t crc, const unsigned char *data, int data_len)
Definition
crc7.c:60
Generated by
1.9.8