From owner-svn-src-stable@FreeBSD.ORG Tue Feb 14 15:18:09 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AFCA1065675; Tue, 14 Feb 2012 15:18:09 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D35788FC1F; Tue, 14 Feb 2012 15:18:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1EFI8h7005220; Tue, 14 Feb 2012 15:18:08 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1EFI8OV005217; Tue, 14 Feb 2012 15:18:08 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201202141518.q1EFI8OV005217@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Tue, 14 Feb 2012 15:18:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r231686 - stable/7/sys/netinet6 X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2012 15:18:09 -0000 Author: bz Date: Tue Feb 14 15:18:08 2012 New Revision: 231686 URL: http://svn.freebsd.org/changeset/base/231686 Log: MFC 229547: Mark a couple of file local functions static and stop exporting them. Discussed with: rwatson Modified: stable/7/sys/netinet6/nd6.h stable/7/sys/netinet6/nd6_rtr.c Directory Properties: stable/7/sys/ (props changed) Modified: stable/7/sys/netinet6/nd6.h ============================================================================== --- stable/7/sys/netinet6/nd6.h Tue Feb 14 15:17:58 2012 (r231685) +++ stable/7/sys/netinet6/nd6.h Tue Feb 14 15:18:08 2012 (r231686) @@ -420,15 +420,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/7/sys/netinet6/nd6_rtr.c ============================================================================== --- stable/7/sys/netinet6/nd6_rtr.c Tue Feb 14 15:17:58 2012 (r231685) +++ stable/7/sys/netinet6/nd6_rtr.c Tue Feb 14 15:18:08 2012 (r231686) @@ -82,6 +82,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 *); extern int nd6_recalc_reachtm_interval; @@ -446,7 +449,7 @@ nd6_rtmsg(int cmd, struct rtentry *rt) rt_missmsg(cmd, &info, rt->rt_flags, 0); } -void +static void defrouter_addreq(struct nd_defrouter *new) { struct sockaddr_in6 def, mask, gate; @@ -1517,7 +1520,7 @@ pfxlist_onlink_check() } } -int +static int nd6_prefix_onlink(struct nd_prefix *pr) { struct ifaddr *ifa; @@ -1630,7 +1633,7 @@ nd6_prefix_onlink(struct nd_prefix *pr) return (error); } -int +static int nd6_prefix_offlink(struct nd_prefix *pr) { int error = 0;