summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2008-07-05 19:12:55 +0000
committerRobert Watson <rwatson@FreeBSD.org>2008-07-05 19:12:55 +0000
commitba8cd2c528a672cde63321d8d27e255c65e1b6d3 (patch)
tree8db12fc0cff76d3ea5a72c8f23cc58addd5a24c4 /sys
parentcec9ffee228c655ca6e827fa98733a1d4732e32d (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/net/raw_cb.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/sys/net/raw_cb.h b/sys/net/raw_cb.h
index 32f35ed88f44..9f96bf15167a 100644
--- a/sys/net/raw_cb.h
+++ b/sys/net/raw_cb.h
@@ -60,22 +60,26 @@ struct rawcb {
extern LIST_HEAD(rawcb_list_head, rawcb) rawcb_list;
extern struct mtx rawcb_mtx;
-/* protosw entries */
+/*
+ * Generic protosw entries for raw socket protocols.
+ */
pr_ctlinput_t raw_ctlinput;
pr_init_t raw_init;
-/* usrreq entries */
+/*
+ * Library routines for raw socket usrreq functions; will always be wrapped
+ * so that protocol-specific functions can be handled.
+ */
int raw_attach(struct socket *, int);
void raw_detach(struct rawcb *);
void raw_disconnect(struct rawcb *);
+void raw_input(struct mbuf *, struct sockproto *, struct sockaddr *,
+ struct sockaddr *);
-#if 0 /* what the ??? */
-pr_input_t raw_input;
-#else
-void raw_input(struct mbuf *,
- struct sockproto *, struct sockaddr *, struct sockaddr *);
-#endif
-
+/*
+ * Generic pr_usrreqs entries for raw socket protocols, usually wrapped so
+ * that protocol-specific functions can be handled.
+ */
extern struct pr_usrreqs raw_usrreqs;
#endif