diff options
Diffstat (limited to 'lib/flags.c')
-rw-r--r-- | lib/flags.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/flags.c b/lib/flags.c new file mode 100644 index 0000000..4baf3bd --- /dev/null +++ b/lib/flags.c @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2001-2002 by Darren Reed. + * + * See the IPFILTER.LICENCE file for details on licencing. + * + * $Id: flags.c,v 1.4.4.1 2006/06/16 17:20:58 darrenr Exp $ + */ + +#include "ipf.h" + +/* + * ECN is a new addition to TCP - RFC 2481 + */ +#ifndef TH_ECN +# define TH_ECN 0x40 +#endif +#ifndef TH_CWR +# define TH_CWR 0x80 +#endif + +char flagset[] = "FSRPAUEC"; +u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG, + TH_ECN, TH_CWR }; |