summaryrefslogtreecommitdiffstats
path: root/sys/net/raw_usrreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/raw_usrreq.c')
-rw-r--r--sys/net/raw_usrreq.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/net/raw_usrreq.c b/sys/net/raw_usrreq.c
index fb4faf4..ae7729f 100644
--- a/sys/net/raw_usrreq.c
+++ b/sys/net/raw_usrreq.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)raw_usrreq.c 8.1 (Berkeley) 6/10/93
- * $Id$
+ * $Id: raw_usrreq.c,v 1.10 1997/02/22 09:41:14 peter Exp $
*/
#include <sys/param.h>
@@ -55,8 +55,7 @@
void
raw_init()
{
-
- rawcb.rcb_next = rawcb.rcb_prev = &rawcb;
+ LIST_INIT(&rawcb_list);
}
@@ -80,7 +79,7 @@ raw_input(m0, proto, src, dst)
struct socket *last;
last = 0;
- for (rp = rawcb.rcb_next; rp != &rawcb; rp = rp->rcb_next) {
+ LIST_FOREACH(rp, &rawcb_list, list) {
if (rp->rcb_proto.sp_family != proto->sp_family)
continue;
if (rp->rcb_proto.sp_protocol &&
OpenPOWER on IntegriCloud