Module Name: src
Committed By: ozaki-r
Date: Wed Nov 15 09:55:22 UTC 2017
Modified Files:
src/sys/netinet: tcp_input.c tcp_var.h
Log Message:
Make syn_cache_timer static
To generate a diff of this commit:
cvs rdiff -u -r1.361 -r1.362 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.180 -r1.181 src/sys/netinet/tcp_var.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/tcp_input.c
diff -u src/sys/netinet/tcp_input.c:1.361 src/sys/netinet/tcp_input.c:1.362
--- src/sys/netinet/tcp_input.c:1.361 Wed Nov 15 09:54:18 2017
+++ src/sys/netinet/tcp_input.c Wed Nov 15 09:55:22 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.361 2017/11/15 09:54:18 ozaki-r Exp $ */
+/* $NetBSD: tcp_input.c,v 1.362 2017/11/15 09:55:22 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.361 2017/11/15 09:54:18 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.362 2017/11/15 09:55:22 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -249,6 +249,8 @@ static struct timeval tcp_rst_ppslim_las
static int tcp_ackdrop_ppslim_count = 0;
static struct timeval tcp_ackdrop_ppslim_last;
+static void syn_cache_timer(void *);
+
#define TCP_PAWS_IDLE (24U * 24 * 60 * 60 * PR_SLOWHZ)
/* for modulo comparisons of timestamps */
@@ -3799,7 +3801,7 @@ syn_cache_insert(struct syn_cache *sc, s
* If we have retransmitted an entry the maximum number of times, expire
* that entry.
*/
-void
+static void
syn_cache_timer(void *arg)
{
struct syn_cache *sc = arg;
Index: src/sys/netinet/tcp_var.h
diff -u src/sys/netinet/tcp_var.h:1.180 src/sys/netinet/tcp_var.h:1.181
--- src/sys/netinet/tcp_var.h:1.180 Mon Jul 31 15:51:27 2017
+++ src/sys/netinet/tcp_var.h Wed Nov 15 09:55:22 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_var.h,v 1.180 2017/07/31 15:51:27 maxv Exp $ */
+/* $NetBSD: tcp_var.h,v 1.181 2017/11/15 09:55:22 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -971,7 +971,6 @@ struct syn_cache *syn_cache_lookup(const
void syn_cache_reset(struct sockaddr *, struct sockaddr *,
struct tcphdr *);
int syn_cache_respond(struct syn_cache *, struct mbuf *);
-void syn_cache_timer(void *);
void syn_cache_cleanup(struct tcpcb *);
int tcp_input_checksum(int, struct mbuf *, const struct tcphdr *, int, int,