svn commit: r355327 - in head/sys: netinet netinet6
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Dec 3 14:46:39 UTC 2019
Author: bz
Date: Tue Dec 3 14:46:38 2019
New Revision: 355327
URL: https://svnweb.freebsd.org/changeset/base/355327
Log:
Make icmp6_reflect() static.
icmp6_reflect() is not used anywhere outside icmp6.c, no reason to
export it.
Sponsored by: Netflix
Modified:
head/sys/netinet/icmp6.h
head/sys/netinet6/icmp6.c
Modified: head/sys/netinet/icmp6.h
==============================================================================
--- head/sys/netinet/icmp6.h Tue Dec 3 13:47:46 2019 (r355326)
+++ head/sys/netinet/icmp6.h Tue Dec 3 14:46:38 2019 (r355327)
@@ -701,7 +701,6 @@ void icmp6_error2(struct mbuf *, int, int, int, struct
int icmp6_input(struct mbuf **, int *, int);
void icmp6_fasttimo(void);
void icmp6_slowtimo(void);
-void icmp6_reflect(struct mbuf *, size_t);
void icmp6_prepare(struct mbuf *);
void icmp6_redirect_input(struct mbuf *, int);
void icmp6_redirect_output(struct mbuf *, struct rtentry *);
Modified: head/sys/netinet6/icmp6.c
==============================================================================
--- head/sys/netinet6/icmp6.c Tue Dec 3 13:47:46 2019 (r355326)
+++ head/sys/netinet6/icmp6.c Tue Dec 3 14:46:38 2019 (r355327)
@@ -137,6 +137,7 @@ VNET_DECLARE(int, icmp6_nodeinfo);
static void icmp6_errcount(int, int);
static int icmp6_rip6_input(struct mbuf **, int);
+static void icmp6_reflect(struct mbuf *, size_t);
static int icmp6_ratelimit(const struct in6_addr *, const int, const int);
static const char *icmp6_redirect_diag(struct in6_addr *,
struct in6_addr *, struct in6_addr *);
@@ -2034,7 +2035,7 @@ icmp6_rip6_input(struct mbuf **mp, int off)
* Reflect the ip6 packet back to the source.
* OFF points to the icmp6 header, counted from the top of the mbuf.
*/
-void
+static void
icmp6_reflect(struct mbuf *m, size_t off)
{
struct in6_addr src6, *srcp;
More information about the svn-src-all
mailing list