[PATCH 4/4] Add in_localip_fib(), in6_localip_fib().

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Jul 7 12:01:08 UTC 2022


From: Gleb Smirnoff <glebius at FreeBSD.org>

Check if given address/FIB exists locally.

Reviewed by:		melifaro
Differential revision:	https://reviews.freebsd.org/D32913
---
 cpukit/include/machine/_kernel_in.h  | 1 +
 cpukit/include/machine/_kernel_in6.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/cpukit/include/machine/_kernel_in.h b/cpukit/include/machine/_kernel_in.h
index c9dcfbd033..b33283353a 100644
--- a/cpukit/include/machine/_kernel_in.h
+++ b/cpukit/include/machine/_kernel_in.h
@@ -55,6 +55,7 @@ bool	 in_localip(struct in_addr);
 #else
 int	 in_localip(struct in_addr);
 #endif
+bool	 in_localip_fib(struct in_addr, uint16_t);
 int	 in_ifhasaddr(struct ifnet *, struct in_addr);
 struct in_ifaddr *in_findlocal(uint32_t, bool);
 int	 inet_aton(const char *, struct in_addr *); /* in libkern */
diff --git a/cpukit/include/machine/_kernel_in6.h b/cpukit/include/machine/_kernel_in6.h
index c2b603fb36..7ec695bd6d 100644
--- a/cpukit/include/machine/_kernel_in6.h
+++ b/cpukit/include/machine/_kernel_in6.h
@@ -167,6 +167,7 @@ int	in6_cksum_partial(struct mbuf *, u_int8_t, u_int32_t, u_int32_t,
 			  u_int32_t);
 int	in6_localaddr(struct in6_addr *);
 int	in6_localip(struct in6_addr *);
+bool	in6_localip_fib(struct in6_addr *, uint16_t);
 int	in6_ifhasaddr(struct ifnet *, struct in6_addr *);
 int	in6_addrscope(const struct in6_addr *);
 char	*ip6_sprintf(char *, const struct in6_addr *);
-- 
2.35.3



More information about the devel mailing list