root/sbin/ipf/libipf/flags.c

/*
 * Copyright (C) 2012 by Darren Reed.
 *
 * See the IPFILTER.LICENCE file for details on licencing.
 *
 * $Id$
 */

#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
#ifndef TH_AE
# define        TH_AE  0x100
#endif

char    flagset[] = "FSRPAUEWe";
uint16_t flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
                    TH_ECN, TH_CWR, TH_AE };