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:
Kevin Lo 2011-08-10 06:17:06 +00:00
parent d98d0ce27a
commit 7236660627

View File

@ -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;