1/* 2 * Copyright (C) 1995-2000 by Darren Reed. 3 * 4 * Redistribution and use in source and binary forms are permitted 5 * provided that this notice is preserved and due credit is given 6 * to the original author and the contributors. 7 * 8 * @(#)ip_state.h 1.3 1/12/96 (C) 1995 Darren Reed
| 1/* 2 * Copyright (C) 1995-2000 by Darren Reed. 3 * 4 * Redistribution and use in source and binary forms are permitted 5 * provided that this notice is preserved and due credit is given 6 * to the original author and the contributors. 7 * 8 * @(#)ip_state.h 1.3 1/12/96 (C) 1995 Darren Reed
|
9 * $Id: ip_state.h,v 2.1.2.2 2000/01/24 13:13:52 darrenr Exp $ 10 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_state.h 60854 2000-05-24 04:09:13Z darrenr $
| 9 * $Id: ip_state.h,v 2.13.2.1 2000/07/08 02:15:35 darrenr Exp $ 10 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_state.h 63523 2000-07-19 14:02:09Z darrenr $
|
11 */ 12#ifndef __IP_STATE_H__ 13#define __IP_STATE_H__ 14 15#if defined(__STDC__) || defined(__GNUC__) 16# define SIOCDELST _IOW('r', 61, struct ipstate *) 17#else 18# define SIOCDELST _IOW(r, 61, struct ipstate *) 19#endif 20
| 11 */ 12#ifndef __IP_STATE_H__ 13#define __IP_STATE_H__ 14 15#if defined(__STDC__) || defined(__GNUC__) 16# define SIOCDELST _IOW('r', 61, struct ipstate *) 17#else 18# define SIOCDELST _IOW(r, 61, struct ipstate *) 19#endif 20
|
21#define IPSTATE_SIZE 257 22#define IPSTATE_MAX 2048 /* Maximum number of states held */
| 21#define IPSTATE_SIZE 5737 22#define IPSTATE_MAX 4013 /* Maximum number of states held */
|
23 24#define PAIRS(s1,d1,s2,d2) ((((s1) == (s2)) && ((d1) == (d2))) ||\ 25 (((s1) == (d2)) && ((d1) == (s2)))) 26#define IPPAIR(s1,d1,s2,d2) PAIRS((s1).s_addr, (d1).s_addr, \ 27 (s2).s_addr, (d2).s_addr) 28 29 30typedef struct udpstate {
--- 165 unchanged lines hidden --- | 23 24#define PAIRS(s1,d1,s2,d2) ((((s1) == (s2)) && ((d1) == (d2))) ||\ 25 (((s1) == (d2)) && ((d1) == (s2)))) 26#define IPPAIR(s1,d1,s2,d2) PAIRS((s1).s_addr, (d1).s_addr, \ 27 (s2).s_addr, (d2).s_addr) 28 29 30typedef struct udpstate {
--- 165 unchanged lines hidden --- |