xref: /onnv-gate/usr/src/cmd/ipf/lib/common/flags.c (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright (C) 1993-2001 by Darren Reed.
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * See the IPFILTER.LICENCE file for details on licencing.
5*0Sstevel@tonic-gate  *
6*0Sstevel@tonic-gate  * $Id: flags.c,v 1.4 2002/11/02 07:16:36 darrenr Exp $
7*0Sstevel@tonic-gate  */
8*0Sstevel@tonic-gate 
9*0Sstevel@tonic-gate #include "ipf.h"
10*0Sstevel@tonic-gate 
11*0Sstevel@tonic-gate /*
12*0Sstevel@tonic-gate  * ECN is a new addition to TCP - RFC 2481
13*0Sstevel@tonic-gate  */
14*0Sstevel@tonic-gate #ifndef TH_ECN
15*0Sstevel@tonic-gate # define	TH_ECN  0x40
16*0Sstevel@tonic-gate #endif
17*0Sstevel@tonic-gate #ifndef TH_CWR
18*0Sstevel@tonic-gate # define	TH_CWR  0x80
19*0Sstevel@tonic-gate #endif
20*0Sstevel@tonic-gate 
21*0Sstevel@tonic-gate char	flagset[] = "FSRPAUEC";
22*0Sstevel@tonic-gate u_char	flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
23*0Sstevel@tonic-gate 		    TH_ECN, TH_CWR };
24