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
This commit is contained in:
Bjoern A. Zeeb 2019-11-13 13:53:17 +00:00
parent ad675b3279
commit d64df9a2b2
2 changed files with 1 additions and 2 deletions

View File

@ -1190,7 +1190,7 @@ nd6_lookup(const struct in6_addr *addr6, int flags, struct ifnet *ifp)
return (ln);
}
struct llentry *
static struct llentry *
nd6_alloc(const struct in6_addr *addr6, int flags, struct ifnet *ifp)
{
struct sockaddr_in6 sin6;

View File

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