summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-02 20:36:19 +0000
committerjulian <julian@FreeBSD.org>2001-09-02 20:36:19 +0000
commit038fbdee78fea5b07768c95cf94c76ce6d81ce81 (patch)
tree3bbf307750466ed469f8258757ee9e76d7710fed
parent6382972949d2b0dd95d208610ee617a2b6848e6f (diff)
downloadFreeBSD-src-038fbdee78fea5b07768c95cf94c76ce6d81ce81.zip
FreeBSD-src-038fbdee78fea5b07768c95cf94c76ce6d81ce81.tar.gz
add another prototype and a couple of stopgaps for the in_protosw variant.
-rw-r--r--sys/sys/protosw.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index 5ee997d..3bff666 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -74,8 +74,10 @@ struct sockopt;
*/
/* USE THESE FOR YOUR PROTOTYPES ! */
typedef void pr_input_t (struct mbuf *, int);
+typedef int pr_input6_t (struct mbuf **, int*, int); /* XXX FIX THIS */
typedef void pr_in_input_t (struct mbuf *, int, int); /* XXX FIX THIS */
typedef int pr_output_t (struct mbuf *, struct socket *);
+typedef int pr_in_output_t (struct mbuf *, struct socket *, struct sockaddr *);
typedef void pr_ctlinput_t (int, struct sockaddr *, void *);
typedef int pr_ctloutput_t (struct socket *, struct sockopt *);
typedef void pr_init_t (void);
@@ -83,6 +85,8 @@ typedef void pr_fasttimo_t (void);
typedef void pr_slowtimo_t (void);
typedef void pr_drain_t (void);
+typedef int pr_usrreq_t(struct socket *, int, struct mbuf *,
+ struct mbuf *, struct mbuf *, struct proc *);
struct protosw {
short pr_type; /* socket type used for */
@@ -95,7 +99,7 @@ struct protosw {
pr_ctlinput_t *pr_ctlinput; /* control input (from below) */
pr_ctloutput_t *pr_ctloutput; /* control output (from above) */
/* user-protocol hook */
- void *pr_ousrreq;
+ pr_usrreq_t *pr_ousrreq;
/* utility hooks */
pr_init_t *pr_init;
pr_fasttimo_t *pr_fasttimo; /* fast timeout (200ms) */
OpenPOWER on IntegriCloud