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.224 retrieving revision 1.224.4.2 diff -u -p -r1.224 -r1.224.4.2 --- src/sys/netinet/ip_input.c 2006/02/18 17:47:07 1.224 +++ src/sys/netinet/ip_input.c 2006/05/11 23:31:09 1.224.4.2 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.224 2006/02/18 17:47:07 joerg Exp $ */ +/* $NetBSD: ip_input.c,v 1.224.4.2 2006/05/11 23:31:09 elad Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -98,7 +98,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.224 2006/02/18 17:47:07 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.224.4.2 2006/05/11 23:31:09 elad Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -732,7 +732,7 @@ ip_input(struct mbuf *m) } if (ia != NULL) goto ours; - if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) { + if (m->m_pkthdr.rcvif && m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) { IFADDR_FOREACH(ifa, m->m_pkthdr.rcvif) { if (ifa->ifa_addr->sa_family != AF_INET) continue; @@ -974,7 +974,7 @@ found: goto bad; } #endif -#if FAST_IPSEC +#ifdef FAST_IPSEC /* * enforce IPsec policy checking if we are seeing last header. * note that we do not visit this with protocols with pcb layer