diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2000-04-13 17:13:43 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2000-04-13 17:13:43 +0000 |
commit | 274d96a2f09dfb981f551384bc363017d438065e (patch) | |
tree | 563bc823997594e678b45b92a4e91c96a361d822 /sys/netinet/ip_state.h | |
parent | da91b51e97115cefa6151d66783c0c63cdda3092 (diff) |
#ifndef the definitions of IPSTATE_MAX and IPSTATE_SIZE
This allows the redefinition of these constants in mk.conf,
for example. mep@netset.net
Diffstat (limited to 'sys/netinet/ip_state.h')
-rw-r--r-- | sys/netinet/ip_state.h | 11 |
1 files 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)))) |