mz: Check device argument by ifindex instead of name prefix
[netsniff-ng.git] / trafgen_l4.h
blob9537cbf3f49eb4d98025ed68533dacbaa92ff69d
1 #ifndef TRAFGEN_L4_H
2 #define TRAFGEN_L4_H
4 enum udp_field {
5 UDP_SPORT,
6 UDP_DPORT,
7 UDP_LEN,
8 UDP_CSUM,
9 };
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,
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,
40 enum icmpv6_field {
41 ICMPV6_TYPE,
42 ICMPV6_CODE,
43 ICMPV6_CSUM,
46 extern void protos_l4_init(void);
48 #endif /* TRAFGEN_L4_H */