If RTF_HOST flag is specified, then we are interested in destination
address. PR: kern/159600 Submitted by: Svatopluk Kraus <onwahe at gmail dot com> Approved by: re (hrs)
This commit is contained in:
parent
d98d0ce27a
commit
7236660627
@ -1037,7 +1037,7 @@ in_addprefix(struct in_ifaddr *target, int flags)
|
||||
IN_IFADDR_RLOCK();
|
||||
TAILQ_FOREACH(ia, &V_in_ifaddrhead, ia_link) {
|
||||
if (rtinitflags(ia)) {
|
||||
p = ia->ia_addr.sin_addr;
|
||||
p = ia->ia_dstaddr.sin_addr;
|
||||
|
||||
if (prefix.s_addr != p.s_addr)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user