1 #ifndef PRS_FLAGS_H
2 #define PRS_FLAGS_H
3 
4 /**
5 * This file defines constants of the parsing flags that are attached to the start packet message of the parser
6 */
7 
8 //error flags
9 #define PRS_ERR_FLG_BAD_IP_VERSION					1
10 #define PRS_ERR_FLG_BAD_IP_HEADER_LENGTH            2
11 #define PRS_ERR_FLG_BAD_IP_TOTAL_LENGTH				4
12 #define PRS_ERR_FLG_BAD_IP_HEADER_CHECKSUM          8
13 #define PRS_ERR_FLG_BAD_TCP_HEADER_CHECKSUM         16
14 #define PRS_ERR_FLG_BAD_UDP_LENGTH					32
15 #define PRS_ERR_FLG_PACKET_TOO_SMALL				64
16 #define PRS_ERR_FLG_ZERO_UDP_IPV6_CHECKSUM          128
17 #define PRS_ERR_TCP_OPTIONS_LENGTH					256
18 
19 #endif //PRS_FLAGS_H
20 
21