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