xref: /freebsd/sbin/ipf/libipf/flags.c (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
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 
22 char	flagset[] = "FSRPAUEC";
23 u_char	flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
24 		    TH_ECN, TH_CWR };
25