1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Use in_ifaddrhashtbl instead of in_ifaddrhead to look up IP address.

This commit is contained in:
Jonathan Lemon 2001-09-29 05:02:36 +00:00
parent 750c427849
commit cf912c8943
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84104

View File

@ -372,13 +372,9 @@ stf_getsrcifa6(ifp)
continue;
bcopy(GET_V4(&sin6->sin6_addr), &in, sizeof(in));
for (ia4 = TAILQ_FIRST(&in_ifaddrhead);
ia4;
ia4 = TAILQ_NEXT(ia4, ia_link))
{
LIST_FOREACH(ia4, INADDR_HASH(in.s_addr), ia_hash)
if (ia4->ia_addr.sin_addr.s_addr == in.s_addr)
break;
}
if (ia4 == NULL)
continue;