From 337c39bf088869c1cb7f01f83af40e82606f3734 Mon Sep 17 00:00:00 2001 From: dg Date: Tue, 19 May 1998 14:19:03 +0000 Subject: [PATCH] Moved #define of IPFLOW_HASHBITS to ip_flow.c where I think it belongs. --- sys/netinet/ip_flow.c | 1 + sys/netinet/ip_var.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_flow.c b/sys/netinet/ip_flow.c index c8ab67fceda..a17cacb0fa6 100644 --- a/sys/netinet/ip_flow.c +++ b/sys/netinet/ip_flow.c @@ -62,6 +62,7 @@ #include #define IPFLOW_TIMER (5 * PR_SLOWHZ) +#define IPFLOW_HASHBITS 6 /* should not be a multiple of 8 */ #define IPFLOW_HASHSIZE (1 << IPFLOW_HASHBITS) static LIST_HEAD(ipflowhead, ipflow) ipflows[IPFLOW_HASHSIZE]; static int ipflow_inuse; diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 5bd7257e0ca..b4ad766969a 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_var.h 8.2 (Berkeley) 1/9/95 - * $Id: ip_var.h,v 1.34 1997/09/07 05:26:46 bde Exp $ + * $Id: ip_var.h,v 1.35 1998/05/19 14:04:36 dg Exp $ */ #ifndef _NETINET_IP_VAR_H_ @@ -151,7 +151,6 @@ struct ipstat { u_long ips_notmember; /* multicasts for unregistered grps */ }; -#define IPFLOW_HASHBITS 6 /* should not be a multiple of 8 */ struct ipflow { LIST_ENTRY(ipflow) ipf_next; /* next ipflow in bucket */ struct in_addr ipf_dst; /* destination address */ -- 2.45.2