1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-28 08:02:54 +00:00

Make use of the PROTO_SPACER functionality for dynamically loadable

protocols in inetsw[] and define initially eight spacer slots.

Remove conflicting declaration 'struct pr_usrreqs nousrreqs'.  It is
now declared and initialized in kern/uipc_domain.c.
This commit is contained in:
Andre Oppermann 2004-10-19 15:58:22 +00:00
parent de38924dc0
commit dff3237ee5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136695

View File

@ -93,7 +93,15 @@
#endif
extern struct domain inetdomain;
static struct pr_usrreqs nousrreqs;
/* Spacer for loadable protocols. */
#define IPPROTOSPACER \
{ 0, &inetdomain, PROTO_SPACER, 0, \
NULL, NULL, NULL, NULL, \
NULL, \
NULL, NULL, NULL, NULL, \
&nousrreqs \
}
struct protosw inetsw[] = {
{ 0, &inetdomain, 0, 0,
@ -239,7 +247,16 @@ struct protosw inetsw[] = {
&rip_usrreqs
},
#endif /* DEV_PFSYNC */
/* raw wildcard */
/* Spacer n-times for loadable protocols. */
IPPROTOSPACER,
IPPROTOSPACER,
IPPROTOSPACER,
IPPROTOSPACER,
IPPROTOSPACER,
IPPROTOSPACER,
IPPROTOSPACER,
IPPROTOSPACER,
/* raw wildcard */
{ SOCK_RAW, &inetdomain, 0, PR_ATOMIC|PR_ADDR,
rip_input, 0, 0, rip_ctloutput,
0,