summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_pcb.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-12-20 02:04:10 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-12-20 02:04:10 +0000
commit1701ff0f9bf0e11e455ae8c89d2ce46ea80776de (patch)
treef7a0f219c687344232ef5f075eb14c8d3ff1f089 /sys/netinet6/in6_pcb.c
parent9679d04a53c6b3dfbddef7675d6e518a3352e495 (diff)
Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQ
in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r--sys/netinet6/in6_pcb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 6061d25deb2..633b8586125 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_pcb.c,v 1.57 2013/10/20 11:03:02 phessler Exp $ */
+/* $OpenBSD: in6_pcb.c,v 1.58 2013/12/20 02:04:09 krw Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -526,10 +526,7 @@ in6_pcbnotify(struct inpcbtable *head, struct sockaddr_in6 *dst,
}
errno = inet6ctlerrmap[cmd];
- for (inp = CIRCLEQ_FIRST(&head->inpt_queue);
- inp != CIRCLEQ_END(&head->inpt_queue); inp = ninp) {
- ninp = CIRCLEQ_NEXT(inp, inp_queue);
-
+ TAILQ_FOREACH_SAFE(inp, &head->inpt_queue, inp_queue, ninp) {
if ((inp->inp_flags & INP_IPV6) == 0)
continue;