Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net modify some functions static. no functional change.
details: https://anonhg.NetBSD.org/src/rev/57e58ed12852
branches: trunk
changeset: 345518:57e58ed12852
user: knakahara <knakahara%NetBSD.org@localhost>
date: Tue May 31 03:52:40 2016 +0000
description:
modify some functions static. no functional change.
diffstat:
sys/net/if_gif.c | 22 +++++++++++++++-------
sys/net/if_gif.h | 9 ++-------
2 files changed, 17 insertions(+), 14 deletions(-)
diffs (102 lines):
diff -r d431dff4c7b1 -r 57e58ed12852 sys/net/if_gif.c
--- a/sys/net/if_gif.c Tue May 31 03:51:55 2016 +0000
+++ b/sys/net/if_gif.c Tue May 31 03:52:40 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.c,v 1.108 2016/04/28 00:16:56 ozaki-r Exp $ */
+/* $NetBSD: if_gif.c,v 1.109 2016/05/31 03:52:40 knakahara Exp $ */
/* $KAME: if_gif.c,v 1.76 2001/08/20 02:01:02 kjc Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.108 2016/04/28 00:16:56 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_gif.c,v 1.109 2016/05/31 03:52:40 knakahara Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -92,6 +92,14 @@
*/
static LIST_HEAD(, gif_softc) gif_softc_list;
+static void gifattach0(struct gif_softc *);
+static int gif_output(struct ifnet *, struct mbuf *,
+ const struct sockaddr *, const struct rtentry *);
+static int gif_ioctl(struct ifnet *, u_long, void *);
+static int gif_set_tunnel(struct ifnet *, struct sockaddr *,
+ struct sockaddr *);
+static void gif_delete_tunnel(struct ifnet *);
+
static void gif_sysctl_setup(struct sysctllog **);
static int gif_clone_create(struct if_clone *, int);
@@ -169,7 +177,7 @@
return (0);
}
-void
+static void
gifattach0(struct gif_softc *sc)
{
@@ -304,7 +312,7 @@
return 0;
}
-int
+static int
gif_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst,
const struct rtentry *rt)
{
@@ -488,7 +496,7 @@
}
/* XXX how should we handle IPv6 scope on SIOC[GS]IFPHYADDR? */
-int
+static int
gif_ioctl(struct ifnet *ifp, u_long cmd, void *data)
{
struct gif_softc *sc = ifp->if_softc;
@@ -775,7 +783,7 @@
return error;
}
-int
+static int
gif_set_tunnel(struct ifnet *ifp, struct sockaddr *src, struct sockaddr *dst)
{
struct gif_softc *sc = ifp->if_softc;
@@ -903,7 +911,7 @@
return error;
}
-void
+static void
gif_delete_tunnel(struct ifnet *ifp)
{
struct gif_softc *sc = ifp->if_softc;
diff -r d431dff4c7b1 -r 57e58ed12852 sys/net/if_gif.h
--- a/sys/net/if_gif.h Tue May 31 03:51:55 2016 +0000
+++ b/sys/net/if_gif.h Tue May 31 03:52:40 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_gif.h,v 1.22 2016/04/28 00:16:56 ozaki-r Exp $ */
+/* $NetBSD: if_gif.h,v 1.23 2016/05/31 03:52:40 knakahara Exp $ */
/* $KAME: if_gif.h,v 1.23 2001/07/27 09:21:42 itojun Exp $ */
/*
@@ -70,13 +70,8 @@
#define GIF_MTU_MAX (8192) /* Maximum MTU */
/* Prototypes */
-void gifattach0(struct gif_softc *);
void gif_input(struct mbuf *, int, struct ifnet *);
-int gif_output(struct ifnet *, struct mbuf *,
- const struct sockaddr *, const struct rtentry *);
-int gif_ioctl(struct ifnet *, u_long, void *);
-int gif_set_tunnel(struct ifnet *, struct sockaddr *, struct sockaddr *);
-void gif_delete_tunnel(struct ifnet *);
+
#ifdef GIF_ENCAPCHECK
int gif_encapcheck(struct mbuf *, int, int, void *);
#endif
Home |
Main Index |
Thread Index |
Old Index