summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorozaki-r <ozaki-r@NetBSD.org>2016-07-06 08:42:34 +0000
committerozaki-r <ozaki-r@NetBSD.org>2016-07-06 08:42:34 +0000
commit6bfa4b77fbeda0e4cf486fc71a04f90ef5e8d874 (patch)
tree0401f5e920d58f872a1f34e56d0d87994e398ef8 /sys/netinet/ip_input.c
parent28c5e5242f5d58e51961ea05f738ec5b84febfac (diff)
Switch the IPv4 address list to pslist(9)
Note that we leave the old list just in case; it seems there are some kvm(3) users accessing the list. We can remove it later if we confirmed nobody does actually.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 87d776d7102..210e45d9e96 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_input.c,v 1.334 2016/07/06 05:27:52 ozaki-r Exp $ */
+/* $NetBSD: ip_input.c,v 1.335 2016/07/06 08:42:34 ozaki-r Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.334 2016/07/06 05:27:52 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.335 2016/07/06 08:42:34 ozaki-r Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -469,9 +469,8 @@ ip_input(struct mbuf *m)
* are receiving, can't do anything with incoming packets yet.
* Note: we pre-check without locks held.
*/
- if (!TAILQ_FIRST(&in_ifaddrhead)) {
+ if (IN_ADDRLIST_READER_EMPTY())
goto out;
- }
IP_STATINC(IP_STAT_TOTAL);
/*