Deleted Added
full compact
pfvar.h (256281) pfvar.h (261018)
1/*
2 * Copyright (c) 2001 Daniel Hartmeier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 13 unchanged lines hidden (view full) ---

22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $OpenBSD: pfvar.h,v 1.282 2009/01/29 15:12:28 pyr Exp $
1/*
2 * Copyright (c) 2001 Daniel Hartmeier
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *

--- 13 unchanged lines hidden (view full) ---

22 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 * POSSIBILITY OF SUCH DAMAGE.
28 *
29 * $OpenBSD: pfvar.h,v 1.282 2009/01/29 15:12:28 pyr Exp $
30 * $FreeBSD: stable/10/sys/net/pfvar.h 240736 2012-09-20 06:52:05Z glebius $
30 * $FreeBSD: stable/10/sys/net/pfvar.h 261018 2014-01-22 10:18:25Z glebius $
31 */
32
33#ifndef _NET_PFVAR_H_
34#define _NET_PFVAR_H_
35
36#include <sys/param.h>
37#include <sys/queue.h>
38#include <sys/refcount.h>

--- 34 unchanged lines hidden (view full) ---

73 */
74enum { PFTM_TCP_FIRST_PACKET, PFTM_TCP_OPENING, PFTM_TCP_ESTABLISHED,
75 PFTM_TCP_CLOSING, PFTM_TCP_FIN_WAIT, PFTM_TCP_CLOSED,
76 PFTM_UDP_FIRST_PACKET, PFTM_UDP_SINGLE, PFTM_UDP_MULTIPLE,
77 PFTM_ICMP_FIRST_PACKET, PFTM_ICMP_ERROR_REPLY,
78 PFTM_OTHER_FIRST_PACKET, PFTM_OTHER_SINGLE,
79 PFTM_OTHER_MULTIPLE, PFTM_FRAG, PFTM_INTERVAL,
80 PFTM_ADAPTIVE_START, PFTM_ADAPTIVE_END, PFTM_SRC_NODE,
31 */
32
33#ifndef _NET_PFVAR_H_
34#define _NET_PFVAR_H_
35
36#include <sys/param.h>
37#include <sys/queue.h>
38#include <sys/refcount.h>

--- 34 unchanged lines hidden (view full) ---

73 */
74enum { PFTM_TCP_FIRST_PACKET, PFTM_TCP_OPENING, PFTM_TCP_ESTABLISHED,
75 PFTM_TCP_CLOSING, PFTM_TCP_FIN_WAIT, PFTM_TCP_CLOSED,
76 PFTM_UDP_FIRST_PACKET, PFTM_UDP_SINGLE, PFTM_UDP_MULTIPLE,
77 PFTM_ICMP_FIRST_PACKET, PFTM_ICMP_ERROR_REPLY,
78 PFTM_OTHER_FIRST_PACKET, PFTM_OTHER_SINGLE,
79 PFTM_OTHER_MULTIPLE, PFTM_FRAG, PFTM_INTERVAL,
80 PFTM_ADAPTIVE_START, PFTM_ADAPTIVE_END, PFTM_SRC_NODE,
81 PFTM_TS_DIFF, PFTM_MAX, PFTM_PURGE, PFTM_UNLINKED,
82 PFTM_UNTIL_PACKET };
81 PFTM_TS_DIFF, PFTM_MAX, PFTM_PURGE, PFTM_UNLINKED };
83
84/* PFTM default values */
85#define PFTM_TCP_FIRST_PACKET_VAL 120 /* First TCP packet */
86#define PFTM_TCP_OPENING_VAL 30 /* No response yet */
87#define PFTM_TCP_ESTABLISHED_VAL 24*60*60/* Established */
88#define PFTM_TCP_CLOSING_VAL 15 * 60 /* Half closed */
89#define PFTM_TCP_FIN_WAIT_VAL 45 /* Got both FINs */
90#define PFTM_TCP_CLOSED_VAL 90 /* Got a RST */

--- 1853 unchanged lines hidden ---
82
83/* PFTM default values */
84#define PFTM_TCP_FIRST_PACKET_VAL 120 /* First TCP packet */
85#define PFTM_TCP_OPENING_VAL 30 /* No response yet */
86#define PFTM_TCP_ESTABLISHED_VAL 24*60*60/* Established */
87#define PFTM_TCP_CLOSING_VAL 15 * 60 /* Half closed */
88#define PFTM_TCP_FIN_WAIT_VAL 45 /* Got both FINs */
89#define PFTM_TCP_CLOSED_VAL 90 /* Got a RST */

--- 1853 unchanged lines hidden ---