summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/raw_cb.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-03-25 05:40:14 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-03-25 05:40:14 +0000
commit4c672b9308cd007997f55b91e4b7c32d9eced06a (patch)
treeddaa3d150e2e659d281bbc6c25152c9325a7a526 /cpukit/libnetworking/net/raw_cb.h
parent2007-03-25 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-4c672b9308cd007997f55b91e4b7c32d9eced06a.tar.bz2
More updates from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net/raw_cb.h')
-rw-r--r--cpukit/libnetworking/net/raw_cb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libnetworking/net/raw_cb.h b/cpukit/libnetworking/net/raw_cb.h
index e9027329bf..02881e32b2 100644
--- a/cpukit/libnetworking/net/raw_cb.h
+++ b/cpukit/libnetworking/net/raw_cb.h
@@ -37,13 +37,14 @@
#ifndef _NET_RAW_CB_H_
#define _NET_RAW_CB_H_
+#include <sys/queue.h>
+
/*
* Raw protocol interface control block. Used
* to tie a socket to the generic raw interface.
*/
struct rawcb {
- struct rawcb *rcb_next; /* doubly linked list */
- struct rawcb *rcb_prev;
+ LIST_ENTRY(rawcb) list;
struct socket *rcb_socket; /* back pointer to socket */
struct sockaddr *rcb_faddr; /* destination address */
struct sockaddr *rcb_laddr; /* socket's address */
@@ -59,7 +60,7 @@ struct rawcb {
#define RAWRCVQ 8192
#ifdef _KERNEL
-extern struct rawcb rawcb; /* head of list */
+extern LIST_HEAD(rawcb_list_head, rawcb) rawcb_list;
int raw_attach(struct socket *, int);
void raw_ctlinput(int, struct sockaddr *, void *);