Module Name: src
Committed By: ozaki-r
Date: Thu May 21 09:26:19 UTC 2015
Modified Files:
src/sys/netinet: if_arp.c if_inarp.h
Log Message:
Make arp_init, in_revarpinput and revarprequest static
To generate a diff of this commit:
cvs rdiff -u -r1.165 -r1.166 src/sys/netinet/if_arp.c
cvs rdiff -u -r1.46 -r1.47 src/sys/netinet/if_inarp.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/if_arp.c
diff -u src/sys/netinet/if_arp.c:1.165 src/sys/netinet/if_arp.c:1.166
--- src/sys/netinet/if_arp.c:1.165 Sat May 16 12:12:46 2015
+++ src/sys/netinet/if_arp.c Thu May 21 09:26:18 2015
@@ -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 @@ static int arp_debug = 0;
#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 *arplookup1(str
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 *);
Index: src/sys/netinet/if_inarp.h
diff -u src/sys/netinet/if_inarp.h:1.46 src/sys/netinet/if_inarp.h:1.47
--- src/sys/netinet/if_inarp.h:1.46 Sat May 16 12:12:46 2015
+++ src/sys/netinet/if_inarp.h Thu May 21 09:26:18 2015
@@ -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 @@ int arpresolve(struct ifnet *, struct rt
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