diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-21 14:57:20 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-12-21 14:57:20 +0000 |
commit | 4305e8e49b42418eedda090cbce276f87113e69f (patch) | |
tree | 461c4156550866e5cde4ae82a8d5c729fa96ad82 /sys/netinet/udp_usrreq.c | |
parent | 6aa7ecedc0a203bcc56e2e1c2e33b99c0a601942 (diff) |
use CIRCLEQ* for pcb's; ok deraadt, henning, mcbride, with help from canacar
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index a338bc6cc30..1658f4ebe2d 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_usrreq.c,v 1.95 2003/12/10 07:22:43 itojun Exp $ */ +/* $OpenBSD: udp_usrreq.c,v 1.96 2003/12/21 14:57:19 markus Exp $ */ /* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ /* @@ -410,9 +410,7 @@ udp_input(struct mbuf *m, ...) * (Algorithm copied from raw_intr().) */ last = NULL; - for (inp = udbtable.inpt_queue.cqh_first; - inp != (struct inpcb *)&udbtable.inpt_queue; - inp = inp->inp_queue.cqe_next) { + CIRCLEQ_FOREACH(inp, &udbtable.inpt_queue, inp_queue) { #ifdef INET6 /* don't accept it if AF does not match */ if (ip6 && !(inp->inp_flags & INP_IPV6)) |