]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/flags.c
Import IP-Filter 5.1.2 into vendor branches using the existing license that
[FreeBSD/FreeBSD.git] / lib / flags.c
1 /*
2  * Copyright (C) 2012 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id$
7  */
8
9 #include "ipf.h"
10
11 /*
12  * ECN is a new addition to TCP - RFC 2481
13  */
14 #ifndef TH_ECN
15 # define        TH_ECN  0x40
16 #endif
17 #ifndef TH_CWR
18 # define        TH_CWR  0x80
19 #endif
20
21 char    flagset[] = "FSRPAUEC";
22 u_char  flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
23                     TH_ECN, TH_CWR };