diff options
| author | 2003-12-21 14:57:19 +0000 | |
|---|---|---|
| committer | 2003-12-21 14:57:19 +0000 | |
| commit | 9be261a95a884f8b10006ea50d2be3411cd528ef (patch) | |
| tree | f280fc20a0419e253b24949659d80dc97a175f4d /sys/netinet6/raw_ip6.c | |
| parent | check for multicast early, remove redundant checks; ok itojun, mcbride (diff) | |
| download | wireguard-openbsd-9be261a95a884f8b10006ea50d2be3411cd528ef.tar.xz wireguard-openbsd-9be261a95a884f8b10006ea50d2be3411cd528ef.zip | |
use CIRCLEQ* for pcb's; ok deraadt, henning, mcbride, with help from canacar
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
| -rw-r--r-- | sys/netinet6/raw_ip6.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index 33c8f977f38..1c25d12dccb 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: raw_ip6.c,v 1.21 2003/10/01 21:41:05 itojun Exp $ */ +/* $OpenBSD: raw_ip6.c,v 1.22 2003/12/21 14:57:19 markus Exp $ */ /* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */ /* @@ -176,10 +176,7 @@ rip6_input(mp, offp, proto) /* KAME hack: recover scopeid */ (void)in6_recoverscope(&rip6src, &ip6->ip6_src, m->m_pkthdr.rcvif); - for (in6p = rawin6pcbtable.inpt_queue.cqh_first; - in6p != (struct inpcb *)&rawin6pcbtable.inpt_queue; - in6p = in6p->inp_queue.cqe_next) - { + CIRCLEQ_FOREACH(in6p, &rawin6pcbtable.inpt_queue, inp_queue) { if (!(in6p->in6p_flags & INP_IPV6)) continue; if (in6p->in6p_ip6.ip6_nxt && |
