Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v retrieving revision 1.50 retrieving revision 1.50.4.1 diff -u -p -r1.50 -r1.50.4.1 --- src/sys/netinet/ip_input.c 1997/06/24 02:26:04 1.50 +++ src/sys/netinet/ip_input.c 1997/09/01 21:00:39 1.50.4.1 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.50 1997/06/24 02:26:04 thorpej Exp $ */ +/* $NetBSD: ip_input.c,v 1.50.4.1 1997/09/01 21:00:39 thorpej Exp $ */ /* * Copyright (c) 1982, 1986, 1988, 1993 @@ -293,6 +293,13 @@ next: ip->ip_dst.s_addr == ia->ia_net) goto ours; } + /* + * An interface with IP address zero accepts + * all packets that arrive on that interface. + */ + if ((ia->ia_ifp == m->m_pkthdr.rcvif) && + in_nullhost(ia->ia_addr.sin_addr)) + goto ours; } if (IN_MULTICAST(ip->ip_dst.s_addr)) { struct in_multi *inm;