2007-04-15 00:17:19 +04:00
|
|
|
/* $NetBSD: flags.c,v 1.1.1.2 2007/04/14 20:17:31 martin Exp $ */
|
2004-03-28 12:55:20 +04:00
|
|
|
|
|
|
|
/*
|
2007-04-15 00:17:19 +04:00
|
|
|
* Copyright (C) 2001-2002 by Darren Reed.
|
2004-03-28 12:55:20 +04:00
|
|
|
*
|
|
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
|
|
*
|
2007-04-15 00:17:19 +04:00
|
|
|
* Id: flags.c,v 1.4.4.1 2006/06/16 17:20:58 darrenr Exp
|
2004-03-28 12:55:20 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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 };
|