From owner-cvs-sys Tue Aug 6 21:09:40 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA03949 for cvs-sys-outgoing; Tue, 6 Aug 1996 21:09:40 -0700 (PDT) Received: (from julian@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA03871; Tue, 6 Aug 1996 21:09:11 -0700 (PDT) Date: Tue, 6 Aug 1996 21:09:11 -0700 (PDT) From: Julian Elischer Message-Id: <199608070409.VAA03871@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/net if.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk julian 96/08/06 21:09:09 Modified: sys/net if.c Log: Submitted by: archie@whistle.com This is a patch to sys/net/if.c. What it does is patch the algorithm for finding an IP address on an interface which most closely matches a given IP address. The problem with it is when no address matches, and you have to just pick one at random. Then the code ends up picking the last IP address in the list. This patch changes things so it picks up the first address instead. Usually the first address is more useful as the later ones are aliases. Revision Changes Path 1.36 +3 -2 src/sys/net/if.c