File: trafgen_l4.h

package info (click to toggle)
netsniff-ng 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,408 kB
  • ctags: 5,166
  • sloc: ansic: 45,369; yacc: 1,786; sh: 741; makefile: 519; lex: 390; python: 61
file content (48 lines) | stat: -rw-r--r-- 558 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef TRAFGEN_L4_H
#define TRAFGEN_L4_H

enum udp_field {
	UDP_SPORT,
	UDP_DPORT,
	UDP_LEN,
	UDP_CSUM,
};

enum tcp_field {
	TCP_SPORT,
	TCP_DPORT,
	TCP_SEQ,
	TCP_ACK_SEQ,
	TCP_DOFF,
	TCP_CWR,
	TCP_ECE,
	TCP_URG,
	TCP_ACK,
	TCP_PSH,
	TCP_RST,
	TCP_SYN,
	TCP_FIN,
	TCP_WINDOW,
	TCP_CSUM,
	TCP_URG_PTR,
};

enum icmpv4_field {
	ICMPV4_TYPE,
	ICMPV4_CODE,
	ICMPV4_CSUM,
	ICMPV4_ID,
	ICMPV4_SEQ,
	ICMPV4_REDIR_ADDR,
	ICMPV4_MTU,
};

enum icmpv6_field {
	ICMPV6_TYPE,
	ICMPV6_CODE,
	ICMPV6_CSUM,
};

extern void protos_l4_init(void);

#endif /* TRAFGEN_L4_H */