Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2019 13:53:18 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r354681 - head/sys/netinet6
Message-ID:  <201911131353.xADDrI7b087826@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Nov 13 13:53:17 2019
New Revision: 354681
URL: https://svnweb.freebsd.org/changeset/base/354681

Log:
  nd6: make nd6_alloc() file static
  
  nd6_alloc() is a function used only locally.  Make it static and no
  longer export it.  Keeps the KPI smaller.
  
  Sponsored by:	Netflix

Modified:
  head/sys/netinet6/nd6.c
  head/sys/netinet6/nd6.h

Modified: head/sys/netinet6/nd6.c
==============================================================================
--- head/sys/netinet6/nd6.c	Wed Nov 13 12:05:48 2019	(r354680)
+++ head/sys/netinet6/nd6.c	Wed Nov 13 13:53:17 2019	(r354681)
@@ -1190,7 +1190,7 @@ nd6_lookup(const struct in6_addr *addr6, int flags, st
 	return (ln);
 }
 
-struct llentry *
+static struct llentry *
 nd6_alloc(const struct in6_addr *addr6, int flags, struct ifnet *ifp)
 {
 	struct sockaddr_in6 sin6;

Modified: head/sys/netinet6/nd6.h
==============================================================================
--- head/sys/netinet6/nd6.h	Wed Nov 13 12:05:48 2019	(r354680)
+++ head/sys/netinet6/nd6.h	Wed Nov 13 13:53:17 2019	(r354681)
@@ -438,7 +438,6 @@ void nd6_option_init(void *, int, union nd_opts *);
 struct nd_opt_hdr *nd6_option(union nd_opts *);
 int nd6_options(union nd_opts *);
 struct llentry *nd6_lookup(const struct in6_addr *, int, struct ifnet *);
-struct llentry *nd6_alloc(const struct in6_addr *, int, struct ifnet *);
 void nd6_setmtu(struct ifnet *);
 void nd6_llinfo_setstate(struct llentry *lle, int newstate);
 void nd6_timer(void *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911131353.xADDrI7b087826>