From cf912c894386913dee8f645db5122e52f55745b8 Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Sat, 29 Sep 2001 05:02:36 +0000 Subject: [PATCH] Use in_ifaddrhashtbl instead of in_ifaddrhead to look up IP address. --- sys/net/if_stf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c index b8842e27ac6b..ebbbe705199a 100644 --- a/sys/net/if_stf.c +++ b/sys/net/if_stf.c @@ -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;