summaryrefslogtreecommitdiffstats
path: root/sys/sys/protosw.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/protosw.h')
-rw-r--r--sys/sys/protosw.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/sys/sys/protosw.h b/sys/sys/protosw.h
index 72b7d3de38f..bf5c9639cf9 100644
--- a/sys/sys/protosw.h
+++ b/sys/sys/protosw.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: protosw.h,v 1.7 2002/03/14 01:27:14 millert Exp $ */
+/* $OpenBSD: protosw.h,v 1.8 2002/03/15 01:20:04 millert Exp $ */
/* $NetBSD: protosw.h,v 1.10 1996/04/09 20:55:32 cgd Exp $ */
/*-
@@ -71,22 +71,27 @@ struct protosw {
short pr_flags; /* see below */
/* protocol-protocol hooks */
- void (*pr_input) /* input to protocol (from below) */(struct mbuf *, ...);
- int (*pr_output) /* output to protocol (from above) */(struct mbuf *, ...);
- void *(*pr_ctlinput) /* control input (from below) */(int, struct sockaddr *, void *);
- int (*pr_ctloutput) /* control output (from above) */(int, struct socket *, int, int, struct mbuf **);
+ /* input to protocol (from below) */
+ void (*pr_input)(struct mbuf *, ...);
+ /* output to protocol (from above) */
+ int (*pr_output)(struct mbuf *, ...);
+ /* control input (from below) */
+ void *(*pr_ctlinput)(int, struct sockaddr *, void *);
+ /* control output (from above) */
+ int (*pr_ctloutput)(int, struct socket *, int, int, struct mbuf **);
/* user-protocol hook */
- int (*pr_usrreq) /* user request: see list below */(struct socket *, int, struct mbuf *,
- struct mbuf *, struct mbuf *);
+ /* user request: see list below */
+ int (*pr_usrreq)(struct socket *, int, struct mbuf *,
+ struct mbuf *, struct mbuf *);
/* utility hooks */
- void (*pr_init) /* initialization hook */(void);
-
- void (*pr_fasttimo) /* fast timeout (200ms) */(void);
- void (*pr_slowtimo) /* slow timeout (500ms) */(void);
- void (*pr_drain) /* flush any excess space possible */(void);
- int (*pr_sysctl) /* sysctl for protocol */(int *, u_int, void *, size_t *, void *, size_t);
+ void (*pr_init)(void); /* initialization hook */
+ void (*pr_fasttimo)(void); /* fast timeout (200ms) */
+ void (*pr_slowtimo)(void); /* slow timeout (500ms) */
+ void (*pr_drain)(void); /* flush any excess space possible */
+ /* sysctl for protocol */
+ int (*pr_sysctl)(int *, u_int, void *, size_t *, void *, size_t);
};
#define PR_SLOWHZ 2 /* 2 slow timeouts per second */