mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 06:59:33 +08:00
sys/netinet6/ip6_input.c: Restore FreeBSD version
This commit is contained in:
parent
4ab42e9fff
commit
bcd6e1b9d1
@ -736,9 +736,12 @@ passin:
|
||||
* as our interface address (e.g. multicast addresses, addresses
|
||||
* within FAITH prefixes and such).
|
||||
*/
|
||||
if (deliverifp && !ip6_getdstifaddr(m)) {
|
||||
if (deliverifp) {
|
||||
struct in6_ifaddr *ia6;
|
||||
|
||||
if ((ia6 = ip6_getdstifaddr(m)) != NULL) {
|
||||
ifa_free(&ia6->ia_ifa);
|
||||
} else {
|
||||
ia6 = in6_ifawithifp(deliverifp, &ip6->ip6_dst);
|
||||
if (ia6) {
|
||||
if (!ip6_setdstifaddr(m, ia6)) {
|
||||
@ -751,6 +754,7 @@ passin:
|
||||
ifa_free(&ia6->ia_ifa);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Process Hop-by-Hop options header if it's contained.
|
||||
|
Loading…
x
Reference in New Issue
Block a user