mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Add support for the AE Flag in the TCP header to pf and ppp. Commonalize to the use of "E"(ECE), "W"(CWR) and "e"(AE) for the TCP header flags, in line with tcpdump. Reviewers: kp, cc, tuexen, cy, #transport! Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D47106
27 lines
451 B
C
27 lines
451 B
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 };
|