svn commit: r354681 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Wed Nov 13 13:53:18 UTC 2019


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 *);


More information about the svn-src-head mailing list