Subject: Re: arping for 127.0.0.1
To: Michael C. Richardson <mcr@sandelman.ottawa.on.ca>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
List: tech-net
Date: 06/15/1998 21:09:10
On Mon, Jun 15, 1998 at 02:41:20PM -0400, Michael C. Richardson wrote:
> 
>   I think I missed the beginning of the thread, or didn't read carefully
> enough. 
>   In /*	$NetBSD: if_arp.c,v 1.41.2.1 1997/10/31 07:47:44 mellon Exp $	*/
> 
> 	/* Search for a matching interface address. */
> 	for (ia = in_ifaddr.tqh_first; ia != 0; ia = ia->ia_list.tqe_next)
> 		if (ia->ia_ifp == ifp) {
> 			maybe_ia = ia;
> 			if (in_hosteq(itaddr, ia->ia_addr.sin_addr) ||
> 			    in_hosteq(isaddr, ia->ia_addr.sin_addr))
> 				break;
> 		}
> 
> 
>   How can this match 127.0.0.1 unless the interface on which it arrived

etc.

Sorry folks, this code I cited seems to be an old version.

The newer stuff uses a hash structure for the interface addresses. I have
to look at it in detail to understand what it does.

	-is