diff options
author | julian <julian@FreeBSD.org> | 2001-08-10 23:17:22 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-08-10 23:17:22 +0000 |
commit | de6d7f13db1d86ccb00650c2ab9e9491ba5b6c9a (patch) | |
tree | 47341eb3ef2f01bbbcf2c1c8333123a544d6ba54 /sys/netinet | |
parent | 69603fe5d4a5db02b03e6a8d979e6e4ecf1787a4 (diff) | |
download | FreeBSD-src-de6d7f13db1d86ccb00650c2ab9e9491ba5b6c9a.zip FreeBSD-src-de6d7f13db1d86ccb00650c2ab9e9491ba5b6c9a.tar.gz |
Make the protoswitch definitiosn checkable in the same way that
cdevsw entries have been for a long time.
Discover that we now have two version sof the same structure.
I will shoot one of them shortly when I figure out why someone thinks
they need it. (And I can prove they don't)
(netinet/ipprotosw.h should GO AWAY)
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ipprotosw.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/sys/netinet/ipprotosw.h b/sys/netinet/ipprotosw.h index 1d65f0c..97c1c85 100644 --- a/sys/netinet/ipprotosw.h +++ b/sys/netinet/ipprotosw.h @@ -84,24 +84,18 @@ struct ipprotosw { short pr_protocol; /* protocol number */ short pr_flags; /* see below */ /* protocol-protocol hooks */ - void (*pr_input) __P((struct mbuf *, int off, int proto)); - /* input to protocol (from below) */ - int (*pr_output) __P((struct mbuf *m, struct socket *so)); - /* output to protocol (from above) */ - void (*pr_ctlinput)__P((int, struct sockaddr *, void *)); - /* control input (from below) */ - int (*pr_ctloutput)__P((struct socket *, struct sockopt *)); - /* control output (from above) */ + pr_in_input_t *pr_input; /* input to protocol (from below) */ + pr_output_t *pr_output; /* output to protocol (from above) */ + pr_ctlinput_t *pr_ctlinput; /* control input (from below) */ + pr_ctloutput_t *pr_ctloutput; /* control output (from above) */ /* user-protocol hook */ void *pr_ousrreq; /* utility hooks */ - void (*pr_init) __P((void)); /* initialization hook */ - void (*pr_fasttimo) __P((void)); - /* fast timeout (200ms) */ - void (*pr_slowtimo) __P((void)); - /* slow timeout (500ms) */ - void (*pr_drain) __P((void)); - /* flush any excess space possible */ + pr_init_t *pr_init; + pr_fasttimo_t *pr_fasttimo; /* fast timeout (200ms) */ + pr_slowtimo_t *pr_slowtimo; /* slow timeout (500ms) */ + pr_drain_t *pr_drain; /* flush any excess space possible */ + struct pr_usrreqs *pr_usrreqs; /* supersedes pr_usrreq() */ struct pfil_head pr_pfh; }; |