Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Make lortrequest static and rename it to loop_rtrequest
details: https://anonhg.NetBSD.org/src/rev/3c162ab8d07f
branches: trunk
changeset: 349062:3c162ab8d07f
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Nov 22 02:06:00 2016 +0000
description:
Make lortrequest static and rename it to loop_rtrequest
No functional change.
diffstat:
sys/net/if.h | 3 +--
sys/net/if_loop.c | 12 +++++++-----
2 files changed, 8 insertions(+), 7 deletions(-)
diffs (64 lines):
diff -r f9283e2cde3a -r 3c162ab8d07f sys/net/if.h
--- a/sys/net/if.h Tue Nov 22 01:49:36 2016 +0000
+++ b/sys/net/if.h Tue Nov 22 02:06:00 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.h,v 1.228 2016/10/08 17:40:12 joerg Exp $ */
+/* $NetBSD: if.h,v 1.229 2016/11/22 02:06:00 ozaki-r Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -1031,7 +1031,6 @@
void loopinit(void);
int looutput(struct ifnet *,
struct mbuf *, const struct sockaddr *, const struct rtentry *);
-void lortrequest(int, struct rtentry *, const struct rt_addrinfo *);
/*
* These are exported because they're an easy way to tell if
diff -r f9283e2cde3a -r 3c162ab8d07f sys/net/if_loop.c
--- a/sys/net/if_loop.c Tue Nov 22 01:49:36 2016 +0000
+++ b/sys/net/if_loop.c Tue Nov 22 02:06:00 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_loop.c,v 1.92 2016/08/11 13:57:02 kre Exp $ */
+/* $NetBSD: if_loop.c,v 1.93 2016/11/22 02:06:00 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.92 2016/08/11 13:57:02 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_loop.c,v 1.93 2016/11/22 02:06:00 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -137,6 +137,8 @@
static int loop_clone_create(struct if_clone *, int);
static int loop_clone_destroy(struct ifnet *);
+static void loop_rtrequest(int, struct rtentry *, const struct rt_addrinfo *);
+
static struct if_clone loop_cloner =
IF_CLONE_INITIALIZER("lo", loop_clone_create, loop_clone_destroy);
@@ -441,8 +443,8 @@
#endif /* ALTQ */
/* ARGSUSED */
-void
-lortrequest(int cmd, struct rtentry *rt,
+static void
+loop_rtrequest(int cmd, struct rtentry *rt,
const struct rt_addrinfo *info)
{
@@ -467,7 +469,7 @@
ifp->if_flags |= IFF_UP;
ifa = (struct ifaddr *)data;
if (ifa != NULL)
- ifa->ifa_rtrequest = lortrequest;
+ ifa->ifa_rtrequest = loop_rtrequest;
/*
* Everything else is done at a higher level.
*/
Home |
Main Index |
Thread Index |
Old Index