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.82 - 1.83; don't receive packets o...



details:   https://anonhg.NetBSD.org/src/rev/af47799455ed
branches:  netbsd-1-4
changeset: 468111:af47799455ed
user:      proff <proff%NetBSD.org@localhost>
date:      Wed Apr 07 23:20:42 1999 +0000

description:
pullup 1.82 - 1.83; don't receive packets on downed interface addresses

diffstat:

 sys/netinet/ip_input.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r b76919448546 -r af47799455ed sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Wed Apr 07 23:03:17 1999 +0000
+++ b/sys/netinet/ip_input.c    Wed Apr 07 23:20:42 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.82 1999/03/27 01:24:49 aidan Exp $      */
+/*     $NetBSD: ip_input.c,v 1.82.2.1 1999/04/07 23:20:42 proff Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -420,7 +420,10 @@
         * Check our list of addresses, to see if the packet is for us.
         */
        INADDR_TO_IA(ip->ip_dst, ia);
-       if (ia != NULL) goto ours;
+       if (ia != NULL) {
+               if (ia->ia_ifp->if_flags & IFF_UP)
+                       goto ours;
+       }
        if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) {
                for (ifa = m->m_pkthdr.rcvif->if_addrlist.tqh_first;
                    ifa != NULL; ifa = ifa->ifa_list.tqe_next) {



Home | Main Index | Thread Index | Old Index