xref: /freebsd/sbin/ipf/libipf/flags.c (revision b64c5a0ace59af62eff52bfe110a521dc73c937b)
1 
2 /*
3  * Copyright (C) 2012 by Darren Reed.
4  *
5  * See the IPFILTER.LICENCE file for details on licencing.
6  *
7  * $Id$
8  */
9 
10 #include "ipf.h"
11 
12 /*
13  * ECN is a new addition to TCP - RFC 2481
14  */
15 #ifndef TH_ECN
16 # define	TH_ECN  0x40
17 #endif
18 #ifndef TH_CWR
19 # define	TH_CWR  0x80
20 #endif
21 #ifndef TH_AE
22 # define	TH_AE  0x100
23 #endif
24 
25 char	flagset[] = "FSRPAUEWe";
26 uint16_t flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
27 		    TH_ECN, TH_CWR, TH_AE };
28