Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet make ipflow_reap() static function.
details: https://anonhg.NetBSD.org/src/rev/5d18d738028d
branches: trunk
changeset: 345886:5d18d738028d
user: knakahara <knakahara%NetBSD.org@localhost>
date: Mon Jun 13 08:29:55 2016 +0000
description:
make ipflow_reap() static function.
diffstat:
sys/netinet/ip_flow.c | 7 ++++---
sys/netinet/ip_var.h | 3 +--
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (52 lines):
diff -r 7b7b8a044e30 -r 5d18d738028d sys/netinet/ip_flow.c
--- a/sys/netinet/ip_flow.c Mon Jun 13 08:04:44 2016 +0000
+++ b/sys/netinet/ip_flow.c Mon Jun 13 08:29:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_flow.c,v 1.68 2016/06/13 08:04:44 knakahara Exp $ */
+/* $NetBSD: ip_flow.c,v 1.69 2016/06/13 08:29:55 knakahara Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.68 2016/06/13 08:04:44 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.69 2016/06/13 08:29:55 knakahara Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -94,6 +94,7 @@
static int ip_maxflows = IPFLOW_MAX;
static int ip_hashsize = IPFLOW_DEFAULT_HASHSIZE;
+static struct ipflow *ipflow_reap(bool);
static void ipflow_sysctl_init(struct sysctllog **);
static size_t
@@ -349,7 +350,7 @@
pool_put(&ipflow_pool, ipf);
}
-struct ipflow *
+static struct ipflow *
ipflow_reap(bool just_one)
{
while (just_one || ipflow_inuse > ip_maxflows) {
diff -r 7b7b8a044e30 -r 5d18d738028d sys/netinet/ip_var.h
--- a/sys/netinet/ip_var.h Mon Jun 13 08:04:44 2016 +0000
+++ b/sys/netinet/ip_var.h Mon Jun 13 08:29:55 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_var.h,v 1.112 2016/04/28 00:16:56 ozaki-r Exp $ */
+/* $NetBSD: ip_var.h,v 1.113 2016/06/13 08:29:55 knakahara Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -244,7 +244,6 @@
/* IP Flow interface. */
void ipflow_init(void);
void ipflow_poolinit(void);
-struct ipflow *ipflow_reap(bool);
void ipflow_create(const struct route *, struct mbuf *);
void ipflow_slowtimo(void);
int ipflow_invalidate_all(int);
Home |
Main Index |
Thread Index |
Old Index