summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-09-29 05:02:36 +0000
committerjlemon <jlemon@FreeBSD.org>2001-09-29 05:02:36 +0000
commite2b58d95e08b62174f078ff47ebcb8c8b0b1ce32 (patch)
tree6c3bd003b6d129209f0391efcc72ee0c90d95472 /sys/net/if_stf.c
parentbde026bcbb850560619a862fc33a8d82d827ca48 (diff)
downloadFreeBSD-src-e2b58d95e08b62174f078ff47ebcb8c8b0b1ce32.zip
FreeBSD-src-e2b58d95e08b62174f078ff47ebcb8c8b0b1ce32.tar.gz
Use in_ifaddrhashtbl instead of in_ifaddrhead to look up IP address.
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index b8842e2..ebbbe70 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;
OpenPOWER on IntegriCloud