xref: /titanic_51/usr/src/cmd/ipf/lib/common/flags.c (revision 1e49577a7fcde812700ded04431b49d67cc57d6d)
1 /*
2  * Copyright (C) 1993-2001 by Darren Reed.
3  *
4  * See the IPFILTER.LICENCE file for details on licencing.
5  *
6  * $Id: flags.c,v 1.4 2002/11/02 07:16:36 darrenr Exp $
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 };
24