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:
parent
de38924dc0
commit
dff3237ee5
@ -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,6 +247,15 @@ struct protosw inetsw[] = {
|
||||
&rip_usrreqs
|
||||
},
|
||||
#endif /* DEV_PFSYNC */
|
||||
/* 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,
|
||||
|
Loading…
Reference in New Issue
Block a user