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.2.2 diff -u -p -r1.224 -r1.224.2.2 --- src/sys/netinet/ip_input.c 2006/02/18 17:47:07 1.224 +++ src/sys/netinet/ip_input.c 2006/06/26 12:53:58 1.224.2.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.2.2 2006/06/26 12:53:58 yamt 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.2.2 2006/06/26 12:53:58 yamt Exp $"); #include "opt_inet.h" #include "opt_gateway.h" @@ -414,7 +414,7 @@ ip_init(void) for (i = 0; i < IPREASS_NHASH; i++) LIST_INIT(&ipq[i]); - ip_id = time.tv_sec & 0xfffff; + ip_id = time_second & 0xfffff; ipintrq.ifq_maxlen = ipqmaxlen; ip_nmbclusters_changed(); @@ -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