Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Make rt_maskedcopy static
details: https://anonhg.NetBSD.org/src/rev/e8d1603d4bfe
branches: trunk
changeset: 337196:e8d1603d4bfe
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Apr 06 08:39:06 2015 +0000
description:
Make rt_maskedcopy static
diffstat:
sys/net/route.c | 9 ++++++---
sys/net/route.h | 4 +---
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r 47a3b1ed0efe -r e8d1603d4bfe sys/net/route.c
--- a/sys/net/route.c Mon Apr 06 08:38:25 2015 +0000
+++ b/sys/net/route.c Mon Apr 06 08:39:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.140 2015/04/06 06:20:27 ozaki-r Exp $ */
+/* $NetBSD: route.c,v 1.141 2015/04/06 08:39:06 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@
#include "opt_route.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.140 2015/04/06 06:20:27 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.141 2015/04/06 08:39:06 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -145,6 +145,9 @@
static int rtflushclone1(struct rtentry *, void *);
static void rtflushclone(sa_family_t family, struct rtentry *);
+static void rt_maskedcopy(const struct sockaddr *,
+ struct sockaddr *, const struct sockaddr *);
+
#ifdef RTFLUSH_DEBUG
static void sysctl_net_rtcache_setup(struct sysctllog **);
static void
@@ -872,7 +875,7 @@
return 0;
}
-void
+static void
rt_maskedcopy(const struct sockaddr *src, struct sockaddr *dst,
const struct sockaddr *netmask)
{
diff -r 47a3b1ed0efe -r e8d1603d4bfe sys/net/route.h
--- a/sys/net/route.h Mon Apr 06 08:38:25 2015 +0000
+++ b/sys/net/route.h Mon Apr 06 08:39:06 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.h,v 1.88 2015/03/23 18:33:17 roy Exp $ */
+/* $NetBSD: route.h,v 1.89 2015/04/06 08:39:06 ozaki-r Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -368,8 +368,6 @@
struct mbuf *rt_msg1(int, struct rt_addrinfo *, void *, int);
void rt_newaddrmsg(int, struct ifaddr *, int, struct rtentry *);
-void rt_maskedcopy(const struct sockaddr *,
- struct sockaddr *, const struct sockaddr *);
int rt_setgate(struct rtentry *, const struct sockaddr *);
int rt_timer_add(struct rtentry *,
void(*)(struct rtentry *, struct rttimer *),
Home |
Main Index |
Thread Index |
Old Index