• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 typedef int8_t s8;
2 typedef int16_t s16;
3 typedef int32_t s32;
4 
5 typedef uint8_t u8;
6 typedef uint16_t u16;
7 typedef uint32_t u32;
8 
9 typedef enum {
10   error_program = -2,
11   error_packet = -1,
12   nomatch = false,
13   match = true
14 } match_result_type;
15 
16 #define ETH_P_IP	0x0800
17 #define ETH_P_IPV6	0x86DD
18 
19 #define ETH_HLEN	14
20 #define IPV4_HLEN	20
21 #define IPV6_HLEN	40
22 #define TCP_HLEN	20
23 #define UDP_HLEN	8
24 
25 #define FUNC(x) x; x
26