svn commit: r231684 - stable/9/sys/netinet6
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Feb 14 15:17:49 UTC 2012
Author: bz
Date: Tue Feb 14 15:17:48 2012
New Revision: 231684
URL: http://svn.freebsd.org/changeset/base/231684
Log:
MFC 229547:
Mark a couple of file local functions static and stop exporting them.
Discussed with: rwatson
Modified:
stable/9/sys/netinet6/nd6.h
stable/9/sys/netinet6/nd6_rtr.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet6/nd6.h
==============================================================================
--- stable/9/sys/netinet6/nd6.h Tue Feb 14 14:55:27 2012 (r231683)
+++ stable/9/sys/netinet6/nd6.h Tue Feb 14 15:17:48 2012 (r231684)
@@ -437,15 +437,12 @@ void nd6_dad_duplicated __P((struct ifad
void nd6_rs_input __P((struct mbuf *, int, int));
void nd6_ra_input __P((struct mbuf *, int, int));
void prelist_del __P((struct nd_prefix *));
-void defrouter_addreq __P((struct nd_defrouter *));
void defrouter_reset __P((void));
void defrouter_select __P((void));
void defrtrlist_del __P((struct nd_defrouter *));
void prelist_remove __P((struct nd_prefix *));
int nd6_prelist_add __P((struct nd_prefixctl *, struct nd_defrouter *,
struct nd_prefix **));
-int nd6_prefix_onlink __P((struct nd_prefix *));
-int nd6_prefix_offlink __P((struct nd_prefix *));
void pfxlist_onlink_check __P((void));
struct nd_defrouter *defrouter_lookup __P((struct in6_addr *, struct ifnet *));
struct nd_prefix *nd6_prefix_lookup __P((struct nd_prefixctl *));
Modified: stable/9/sys/netinet6/nd6_rtr.c
==============================================================================
--- stable/9/sys/netinet6/nd6_rtr.c Tue Feb 14 14:55:27 2012 (r231683)
+++ stable/9/sys/netinet6/nd6_rtr.c Tue Feb 14 15:17:48 2012 (r231684)
@@ -84,6 +84,9 @@ static int in6_init_prefix_ltimes(struct
static void in6_init_address_ltimes __P((struct nd_prefix *,
struct in6_addrlifetime *));
+static int nd6_prefix_onlink(struct nd_prefix *);
+static int nd6_prefix_offlink(struct nd_prefix *);
+
static int rt6_deleteroute(struct radix_node *, void *);
VNET_DECLARE(int, nd6_recalc_reachtm_interval);
@@ -465,7 +468,7 @@ nd6_rtmsg(int cmd, struct rtentry *rt)
ifa_free(ifa);
}
-void
+static void
defrouter_addreq(struct nd_defrouter *new)
{
struct sockaddr_in6 def, mask, gate;
@@ -1547,7 +1550,7 @@ pfxlist_onlink_check()
}
}
-int
+static int
nd6_prefix_onlink(struct nd_prefix *pr)
{
struct ifaddr *ifa;
@@ -1672,7 +1675,7 @@ nd6_prefix_onlink(struct nd_prefix *pr)
return (error);
}
-int
+static int
nd6_prefix_offlink(struct nd_prefix *pr)
{
int error = 0;
More information about the svn-src-stable-9
mailing list