diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2020-04-15 12:56:05 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2020-04-15 12:56:05 +0000 |
commit | 53a4886d5df61eb120f5b4f2c31de0ba390a751a (patch) | |
tree | e38bd98a363623a306433bd4a87c9145666a7008 /sys/netinet6/scope6_var.h | |
parent | 4afeb43d98298415cd4fea27cdbac630729c8adc (diff) | |
download | src-53a4886d5df61eb120f5b4f2c31de0ba390a751a.tar.gz src-53a4886d5df61eb120f5b4f2c31de0ba390a751a.zip |
Convert ip6_forward() to the new routing KPI.
Update ip6_forward() internals to use deembedded IPv6 addresses
to simplify calls to the new KPI and prepare for the future
scope-embedding cleanup.
Add in6_get_unicast_scopeid() and in6_set_unicast_scopeid() scopeid
operation functions tailored for unicast processing.
Reviewed by: ae
Differential Revision: https://reviews.freebsd.org/D24334
Notes
Notes:
svn path=/head/; revision=359963
Diffstat (limited to 'sys/netinet6/scope6_var.h')
-rw-r--r-- | sys/netinet6/scope6_var.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet6/scope6_var.h b/sys/netinet6/scope6_var.h index f4e59a1920c1..cdb2b9572bc2 100644 --- a/sys/netinet6/scope6_var.h +++ b/sys/netinet6/scope6_var.h @@ -67,6 +67,8 @@ uint16_t in6_getscope(const struct in6_addr *); uint32_t in6_getscopezone(const struct ifnet *, int); void in6_splitscope(const struct in6_addr *, struct in6_addr *, uint32_t *); struct ifnet* in6_getlinkifnet(uint32_t); +uint32_t in6_get_unicast_scopeid(const struct in6_addr *, const struct ifnet *); +void in6_set_unicast_scopeid(struct in6_addr *, uint32_t); #endif /* _KERNEL */ #endif /* _NETINET6_SCOPE6_VAR_H_ */ |