Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Make arp_init, in_revarpinput and revarprequest ...
details: https://anonhg.NetBSD.org/src/rev/11e3f7bf7242
branches: trunk
changeset: 338392:11e3f7bf7242
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu May 21 09:26:18 2015 +0000
description:
Make arp_init, in_revarpinput and revarprequest static
diffstat:
sys/netinet/if_arp.c | 9 +++++++--
sys/netinet/if_inarp.h | 5 +----
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (61 lines):
diff -r 3858460e7aa2 -r 11e3f7bf7242 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c Thu May 21 08:23:22 2015 +0000
+++ b/sys/netinet/if_arp.c Thu May 21 09:26:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arp.c,v 1.165 2015/05/16 12:12:46 roy Exp $ */
+/* $NetBSD: if_arp.c,v 1.166 2015/05/21 09:26:18 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.165 2015/05/16 12:12:46 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.166 2015/05/21 09:26:18 ozaki-r Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@@ -152,6 +152,8 @@
#endif
#define arplog(x) do { if (arp_debug) log x; } while (/*CONSTCOND*/ 0)
+static void arp_init(void);
+
static struct sockaddr *arp_setgate(struct rtentry *, struct sockaddr *,
const struct sockaddr *);
static void arptfree(struct llinfo_arp *);
@@ -161,6 +163,9 @@
static struct llinfo_arp *arplookup(struct mbuf *, const struct in_addr *,
int, int);
static void in_arpinput(struct mbuf *);
+static void in_revarpinput(struct mbuf *);
+static void revarprequest(struct ifnet *);
+
static void arp_drainstub(void);
static void arp_dad_timer(struct ifaddr *);
diff -r 3858460e7aa2 -r 11e3f7bf7242 sys/netinet/if_inarp.h
--- a/sys/netinet/if_inarp.h Thu May 21 08:23:22 2015 +0000
+++ b/sys/netinet/if_inarp.h Thu May 21 09:26:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_inarp.h,v 1.46 2015/05/16 12:12:46 roy Exp $ */
+/* $NetBSD: if_inarp.h,v 1.47 2015/05/21 09:26:18 ozaki-r Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -80,14 +80,11 @@
void arpintr(void);
void arprequest(struct ifnet *, const struct in_addr *, const struct in_addr *,
const u_int8_t *);
-void arp_init(void);
void arp_drain(void);
int arpioctl(u_long, void *);
void arpwhohas(struct ifnet *, struct in_addr *);
void revarpinput(struct mbuf *);
-void in_revarpinput(struct mbuf *);
-void revarprequest(struct ifnet *);
int revarpwhoarewe(struct ifnet *, struct in_addr *, struct in_addr *);
#endif
Home |
Main Index |
Thread Index |
Old Index