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.32->1.33 (thorpej)
details: https://anonhg.NetBSD.org/src/rev/9e50ca2baca1
branches: netbsd-1-4
changeset: 468630:9e50ca2baca1
user: perry <perry%NetBSD.org@localhost>
date: Mon May 03 22:24:49 1999 +0000
description:
pullup 1.32->1.33 (thorpej)
diffstat:
sys/netinet/in_var.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 4a807ee7a608 -r 9e50ca2baca1 sys/netinet/in_var.h
--- a/sys/netinet/in_var.h Mon May 03 22:22:42 1999 +0000
+++ b/sys/netinet/in_var.h Mon May 03 22:24:49 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in_var.h,v 1.32 1998/12/19 02:46:12 thorpej Exp $ */
+/* $NetBSD: in_var.h,v 1.32.2.1 1999/05/03 22:24:49 perry Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -144,13 +144,17 @@
/*
* Macro for finding whether an internet address (in_addr) belongs to one
* of our interfaces (in_ifaddr). NULL if the address isn't ours.
+ *
+ * Note that even if we find an interface with the address we're looking
+ * for, we should skip that interface if it is not up.
*/
#define INADDR_TO_IA(addr, ia) \
/* struct in_addr addr; */ \
/* 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 != NULL && !in_hosteq(ia->ia_addr.sin_addr, (addr)) && \
+ (ia->ia_ifp->if_flags & IFF_UP) == 0; \
ia = ia->ia_hash.le_next) \
continue; \
}
Home |
Main Index |
Thread Index |
Old Index