From c8ce45116146c5fb70d766e0af5f83ff32ed5b15 Mon Sep 17 00:00:00 2001 From: kjell Date: Thu, 13 Apr 2000 17:13:42 +0000 Subject: [PATCH] #ifndef the definitions of IPSTATE_MAX and IPSTATE_SIZE This allows the redefinition of these constants in mk.conf, for example. mep@netset.net --- sys/netinet/ip_state.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sys/netinet/ip_state.h b/sys/netinet/ip_state.h index 5cc276d4d41..5174f8571d4 100644 --- a/sys/netinet/ip_state.h +++ b/sys/netinet/ip_state.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_state.h,v 1.13 2000/03/13 23:40:18 kjell Exp $ */ +/* $OpenBSD: ip_state.h,v 1.14 2000/04/13 17:13:42 kjell Exp $ */ /* * Copyright (C) 1995-1998 by Darren Reed. @@ -13,8 +13,13 @@ #ifndef __IP_STATE_H__ #define __IP_STATE_H__ -#define IPSTATE_SIZE 257 -#define IPSTATE_MAX 2048 /* Maximum number of states held */ +#ifndef IPSTATE_SIZE +# define IPSTATE_SIZE 257 +#endif + +#ifndef IPSTATE_MAX +# define IPSTATE_MAX 2048 /* Maximum number of states held */ +#endif #define PAIRS(s1,d1,s2,d2) ((((s1) == (s2)) && ((d1) == (d2))) ||\ (((s1) == (d2)) && ((d1) == (s2)))) -- 2.20.1