Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/netinet pullup 1.33->1.34 (thorpej): fix INADDR_TO_...



details:   https://anonhg.NetBSD.org/src/rev/7d4ce95ccb7d
branches:  netbsd-1-4
changeset: 468702:7d4ce95ccb7d
user:      perry <perry%NetBSD.org@localhost>
date:      Mon Jun 07 19:57:17 1999 +0000

description:
pullup 1.33->1.34 (thorpej): fix INADDR_TO_IA()

diffstat:

 sys/netinet/in_var.h |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (26 lines):

diff -r 7405b6056bc2 -r 7d4ce95ccb7d sys/netinet/in_var.h
--- a/sys/netinet/in_var.h      Mon Jun 07 19:32:29 1999 +0000
+++ b/sys/netinet/in_var.h      Mon Jun 07 19:57:17 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_var.h,v 1.32.2.1 1999/05/03 22:24:49 perry Exp $    */
+/*     $NetBSD: in_var.h,v 1.32.2.2 1999/06/07 19:57:17 perry Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -153,10 +153,12 @@
        /* struct in_ifaddr *ia; */ \
 { \
        for (ia = IN_IFADDR_HASH((addr).s_addr).lh_first; \
-           ia != NULL && !in_hosteq(ia->ia_addr.sin_addr, (addr)) && \
-           (ia->ia_ifp->if_flags & IFF_UP) == 0; \
-           ia = ia->ia_hash.le_next) \
-                continue; \
+            ia != NULL; \
+            ia = ia->ia_hash.le_next) { \
+               if (in_hosteq(ia->ia_addr.sin_addr, (addr)) && \
+                   (ia->ia_ifp->if_flags & IFF_UP) != 0) \
+                       break; \
+       } \
 }
 
 /*



Home | Main Index | Thread Index | Old Index