repo.or.cz
/
netsniff-ng-new.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
trafgen: proto: Zero out newly allocated struct packet
[netsniff-ng-new.git]
/
trafgen_l4.h
blob
9537cbf3f49eb4d98025ed68533dacbaa92ff69d
1
#ifndef TRAFGEN_L4_H
2
#define TRAFGEN_L4_H
3
4
enum
udp_field
{
5
UDP_SPORT
,
6
UDP_DPORT
,
7
UDP_LEN
,
8
UDP_CSUM
,
9
};
10
11
enum
tcp_field
{
12
TCP_SPORT
,
13
TCP_DPORT
,
14
TCP_SEQ
,
15
TCP_ACK_SEQ
,
16
TCP_DOFF
,
17
TCP_CWR
,
18
TCP_ECE
,
19
TCP_URG
,
20
TCP_ACK
,
21
TCP_PSH
,
22
TCP_RST
,
23
TCP_SYN
,
24
TCP_FIN
,
25
TCP_WINDOW
,
26
TCP_CSUM
,
27
TCP_URG_PTR
,
28
};
29
30
enum
icmpv4_field
{
31
ICMPV4_TYPE
,
32
ICMPV4_CODE
,
33
ICMPV4_CSUM
,
34
ICMPV4_ID
,
35
ICMPV4_SEQ
,
36
ICMPV4_REDIR_ADDR
,
37
ICMPV4_MTU
,
38
};
39
40
enum
icmpv6_field
{
41
ICMPV6_TYPE
,
42
ICMPV6_CODE
,
43
ICMPV6_CSUM
,
44
};
45
46
extern
void
protos_l4_init
(
void
);
47
48
#endif
/* TRAFGEN_L4_H */