Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 localify



details:   https://anonhg.NetBSD.org/src/rev/6de5ba59f350
branches:  trunk
changeset: 973093:6de5ba59f350
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Jun 19 16:08:06 2020 +0000

description:
localify

diffstat:

 sys/netinet6/ip6_input.c |  17 +++++++++++------
 sys/netinet6/ip6_var.h   |   6 +-----
 2 files changed, 12 insertions(+), 11 deletions(-)

diffs (96 lines):

diff -r 06e0b7e21c23 -r 6de5ba59f350 sys/netinet6/ip6_input.c
--- a/sys/netinet6/ip6_input.c  Fri Jun 19 14:13:23 2020 +0000
+++ b/sys/netinet6/ip6_input.c  Fri Jun 19 16:08:06 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_input.c,v 1.216 2020/06/12 11:04:45 roy Exp $      */
+/*     $NetBSD: ip6_input.c,v 1.217 2020/06/19 16:08:06 maxv Exp $     */
 /*     $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $     */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.216 2020/06/12 11:04:45 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.217 2020/06/19 16:08:06 maxv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -135,9 +135,14 @@
 percpu_t *ip6_forward_rt_percpu __cacheline_aligned;
 
 static void ip6intr(void *);
+static void ip6_input(struct mbuf *, struct ifnet *);
 static bool ip6_badaddr(struct ip6_hdr *);
 static struct m_tag *ip6_setdstifaddr(struct mbuf *, const struct in6_ifaddr *);
 
+static struct m_tag *ip6_addaux(struct mbuf *);
+static struct m_tag *ip6_findaux(struct mbuf *);
+static void ip6_delaux(struct mbuf *);
+
 static int ip6_process_hopopts(struct mbuf *, u_int8_t *, int, u_int32_t *,
     u_int32_t *);
 static struct mbuf *ip6_pullexthdr(struct mbuf *, size_t, int);
@@ -225,7 +230,7 @@
        SOFTNET_KERNEL_UNLOCK_UNLESS_NET_MPSAFE();
 }
 
-void
+static void
 ip6_input(struct mbuf *m, struct ifnet *rcvif)
 {
        struct ip6_hdr *ip6;
@@ -1479,7 +1484,7 @@
        }
 }
 
-struct m_tag *
+static struct m_tag *
 ip6_addaux(struct mbuf *m)
 {
        struct m_tag *mtag;
@@ -1496,7 +1501,7 @@
        return mtag;
 }
 
-struct m_tag *
+static struct m_tag *
 ip6_findaux(struct mbuf *m)
 {
        struct m_tag *mtag;
@@ -1505,7 +1510,7 @@
        return mtag;
 }
 
-void
+static void
 ip6_delaux(struct mbuf *m)
 {
        struct m_tag *mtag;
diff -r 06e0b7e21c23 -r 6de5ba59f350 sys/netinet6/ip6_var.h
--- a/sys/netinet6/ip6_var.h    Fri Jun 19 14:13:23 2020 +0000
+++ b/sys/netinet6/ip6_var.h    Fri Jun 19 16:08:06 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip6_var.h,v 1.83 2020/06/12 11:04:45 roy Exp $ */
+/*     $NetBSD: ip6_var.h,v 1.84 2020/06/19 16:08:06 maxv Exp $        */
 /*     $KAME: ip6_var.h,v 1.33 2000/06/11 14:59:20 jinmei Exp $        */
 
 /*
@@ -276,7 +276,6 @@
 
 struct mbuf;
 void   ip6_init(void);
-void   ip6_input(struct mbuf *, struct ifnet *);
 const struct ip6aux *ip6_getdstifaddr(struct mbuf *);
 void   ip6_freepcbopts(struct ip6_pktopts *);
 void   ip6_freemoptions(struct ip6_moptions *);
@@ -285,9 +284,6 @@
 int    ip6_nexthdr(struct mbuf *, int, int, int *);
 int    ip6_lasthdr(struct mbuf *, int, int, int *);
 
-struct m_tag *ip6_addaux(struct mbuf *);
-struct m_tag *ip6_findaux(struct mbuf *);
-void   ip6_delaux(struct mbuf *);
 struct ip6_hdr;
 int    ip6_mforward(struct ip6_hdr *, struct ifnet *, struct mbuf *);
 int    ip6_hopopts_input(u_int32_t *, u_int32_t *, struct mbuf **, int *);



Home | Main Index | Thread Index | Old Index