diff options
author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
---|---|---|
committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/cmd/ipf/lib/common/flags.c | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/cmd/ipf/lib/common/flags.c')
-rw-r--r-- | usr/src/cmd/ipf/lib/common/flags.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/usr/src/cmd/ipf/lib/common/flags.c b/usr/src/cmd/ipf/lib/common/flags.c new file mode 100644 index 0000000000..49f28e6bef --- /dev/null +++ b/usr/src/cmd/ipf/lib/common/flags.c @@ -0,0 +1,23 @@ +/* + * Copyright (C) 1993-2001 by Darren Reed. + * + * See the IPFILTER.LICENCE file for details on licencing. + * + * $Id: flags.c,v 1.4 2002/11/02 07:16:36 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 }; |