Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Make syn_cache_timer static



details:   https://anonhg.NetBSD.org/src/rev/40a145b4cab4
branches:  trunk
changeset: 357564:40a145b4cab4
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Nov 15 09:55:22 2017 +0000

description:
Make syn_cache_timer static

diffstat:

 sys/netinet/tcp_input.c |  8 +++++---
 sys/netinet/tcp_var.h   |  3 +--
 2 files changed, 6 insertions(+), 5 deletions(-)

diffs (53 lines):

diff -r 4971e8daad4f -r 40a145b4cab4 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c   Wed Nov 15 09:54:18 2017 +0000
+++ b/sys/netinet/tcp_input.c   Wed Nov 15 09:55:22 2017 +0000
@@ -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 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 @@
  * 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;
diff -r 4971e8daad4f -r 40a145b4cab4 sys/netinet/tcp_var.h
--- a/sys/netinet/tcp_var.h     Wed Nov 15 09:54:18 2017 +0000
+++ b/sys/netinet/tcp_var.h     Wed Nov 15 09:55:22 2017 +0000
@@ -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 @@
 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,



Home | Main Index | Thread Index | Old Index