Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet since we cope with packets with addess on !IFF_U...



details:   https://anonhg.NetBSD.org/src/rev/b0e93d921918
branches:  trunk
changeset: 550723:b0e93d921918
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Aug 18 22:28:51 2003 +0000

description:
since we cope with packets with addess on !IFF_UP interface in ip_input()
properly, IFF_UP check in INADDR_TO_IA is obsolete (or too much).

diffstat:

 sys/netinet/in_var.h |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (28 lines):

diff -r 505764cb026d -r b0e93d921918 sys/netinet/in_var.h
--- a/sys/netinet/in_var.h      Mon Aug 18 22:23:22 2003 +0000
+++ b/sys/netinet/in_var.h      Mon Aug 18 22:28:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in_var.h,v 1.48 2003/08/07 16:33:11 agc Exp $  */
+/*     $NetBSD: in_var.h,v 1.49 2003/08/18 22:28:51 itojun Exp $       */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -154,17 +154,13 @@
 /*
  * 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; */ \
 { \
        LIST_FOREACH(ia, &IN_IFADDR_HASH((addr).s_addr), ia_hash) { \
-               if (in_hosteq(ia->ia_addr.sin_addr, (addr)) && \
-                   (ia->ia_ifp->if_flags & IFF_UP) != 0) \
+               if (in_hosteq(ia->ia_addr.sin_addr, (addr))) \
                        break; \
        } \
 }



Home | Main Index | Thread Index | Old Index