diff options
author | julian <julian@FreeBSD.org> | 2001-09-02 20:36:19 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-09-02 20:36:19 +0000 |
commit | 038fbdee78fea5b07768c95cf94c76ce6d81ce81 (patch) | |
tree | 3bbf307750466ed469f8258757ee9e76d7710fed /sys/sys/protosw.h | |
parent | 6382972949d2b0dd95d208610ee617a2b6848e6f (diff) | |
download | FreeBSD-src-038fbdee78fea5b07768c95cf94c76ce6d81ce81.zip FreeBSD-src-038fbdee78fea5b07768c95cf94c76ce6d81ce81.tar.gz |
add another prototype and a couple of stopgaps for the in_protosw variant.
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r-- | sys/sys/protosw.h | 6 |
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) */ |