41edb306f0
Through fixes and improvements our ipfilter sources have diverged enough to warrant move from contrib into sbin/ipf. Now that I'm planning on implementing MSS clamping as in iptables it makes more sense to move ipfilter to sbin. This is the second of three commits of the ipfilter move. Suggested by glebius on two occaions. Suggested by and discussed with: glebius Reviewed by: glebius, kp (for #network) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D33510
26 lines
414 B
C
26 lines
414 B
C
/* $FreeBSD$ */
|
|
|
|
/*
|
|
* 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
|
|
|
|
char flagset[] = "FSRPAUEC";
|
|
u_char flags[] = { TH_FIN, TH_SYN, TH_RST, TH_PUSH, TH_ACK, TH_URG,
|
|
TH_ECN, TH_CWR };
|