summaryrefslogtreecommitdiff
path: root/trafgen_l7.h
blob: cf19fa4f17ab090275b5c50e11e9d4b430201873 (plain)
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
#ifndef TRAFGEN_L7_H
#define TRAFGEN_L7_H

enum dns_field {
	DNS_ID,
	DNS_QR,
	DNS_OPCODE,
	DNS_AA,
	DNS_TC,
	DNS_RD,
	DNS_RA,
	DNS_ZERO,
	DNS_RCODE,
	DNS_QD_COUNT,
	DNS_AN_COUNT,
	DNS_NS_COUNT,
	DNS_AR_COUNT,
};

enum dns_header {
	DNS_UNDEF_HDR,
	DNS_QUERY_HDR,
	DNS_ANSWER_HDR,
	DNS_AUTH_HDR,
	DNS_ADD_HDR,
};

enum dns_query_field {
	DNS_QUERY_NAME,
	DNS_QUERY_TYPE,
	DNS_QUERY_CLASS,
};

enum dns_rrecord_field {
	DNS_RRECORD_NAME,
	DNS_RRECORD_TYPE,
	DNS_RRECORD_CLASS,
	DNS_RRECORD_TTL,
	DNS_RRECORD_LEN,
	DNS_RRECORD_DATA,
};

extern void protos_l7_init(void);

#endif /* TRAFGEN_L7_H */
39f2b89774312daa3d'>5f0f18269ce9086baa80f2842b6acb86cfd5d995 /samples parent6af2d5fff2fdcd481cb9a4f354a0880142b17c60 (diff)
samples/bpf: silence compiler warnings
silence some of the clang compiler warnings like: include/linux/fs.h:2693:9: warning: comparison of unsigned enum expression < 0 is always false arch/x86/include/asm/processor.h:491:30: warning: taking address of packed member 'sp0' of class or structure 'x86_hw_tss' may result in an unaligned pointer value include/linux/cgroup-defs.h:326:16: warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension since they add too much noise to samples/bpf/ build. Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
-rw-r--r--samples/bpf/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile