summaryrefslogtreecommitdiff
path: root/sys/net/raw_usrreq.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-04-14 18:23:25 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-04-14 18:23:25 +0000
commitea0110598882bfc78c23cde9feaf1172f83b1a7a (patch)
tree588fa0c343d528e4bac651bbfee5cd862da0532e /sys/net/raw_usrreq.c
parent0b5fe37814442e592578326b64d9747fa3542aa5 (diff)
Notes
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 fb4faf4d6d5c..ae7729f1ce2e 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 &&