Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Prevent reception of packets on downed interface...
details: https://anonhg.NetBSD.org/src/rev/56b7a46d05b3
branches: trunk
changeset: 471660:56b7a46d05b3
user: proff <proff%NetBSD.org@localhost>
date: Wed Apr 07 02:31:05 1999 +0000
description:
Prevent reception of packets on downed interfaces (via an up interface).
fixes kern/7327
diffstat:
sys/netinet/ip_input.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r b2f2d30149f1 -r 56b7a46d05b3 sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c Wed Apr 07 00:44:02 1999 +0000
+++ b/sys/netinet/ip_input.c Wed Apr 07 02:31:05 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.83 1999/04/07 02:31:05 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