* @APPLE_LICENSE_OSREFERENCE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* @APPLE_LICENSE_OSREFERENCE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
extern int ddp_pru_shutdown(struct socket *so);
extern int ddp_pru_sockaddr(struct socket *so,
struct sockaddr **nam);
extern int ddp_pru_shutdown(struct socket *so);
extern int ddp_pru_sockaddr(struct socket *so,
struct sockaddr **nam);
ddp_pru_sockaddr, sosend, soreceive, pru_sopoll_notsupp
};
ddp_pru_sockaddr, sosend, soreceive, pru_sopoll_notsupp
};
struct protosw atalksw[] = {
{ SOCK_RAW, &atalkdomain, /*protocol*/ 0, PR_ATOMIC|PR_ADDR,
/*input*/ 0, /*output*/ 0, /*clinput*/ 0, ddp_ctloutput,
/*ousrreq*/ 0,
ddp_init, /*fastto*/ 0, /*slowto*/ 0, /*drain*/ 0,
/*sysctl*/ 0, &ddp_usrreqs,
struct protosw atalksw[] = {
{ SOCK_RAW, &atalkdomain, /*protocol*/ 0, PR_ATOMIC|PR_ADDR,
/*input*/ 0, /*output*/ 0, /*clinput*/ 0, ddp_ctloutput,
/*ousrreq*/ 0,
ddp_init, /*fastto*/ 0, /*slowto*/ 0, /*drain*/ 0,
/*sysctl*/ 0, &ddp_usrreqs,
+ 0, 0, 0, /*lock, unlock, getlock */
+ {0, 0}, 0, {0} /* filters */
-{ AF_APPLETALK, "appletalk", atalk_dominit, 0, 0,
- atalksw, 0,
- 0, 0, 0,
- DDP_X_HDR_SIZE, 0
+{ AF_APPLETALK,
+ "appletalk",
+ atalk_dominit,
+ 0,
+ 0,
+ atalksw,
+ 0,
+ 0, /* dom_rtattach */
+ 0, 0, /* dom_rtoffset, dom_maxrtkey */
+ DDP_X_HDR_SIZE, 0,
+ 0, /* domain global mutex */
+ 0, /* domain flags */
+ {0, 0} /*reserved[2] */
SYSCTL_NODE(_net, PF_APPLETALK, appletalk, CTLFLAG_RW, 0, "AppleTalk Family");
void
SYSCTL_NODE(_net, PF_APPLETALK, appletalk, CTLFLAG_RW, 0, "AppleTalk Family");
void
lck_mtx_assert(atalkdom->dom_mtx, LCK_MTX_ASSERT_NOTOWNED);
lck_mtx_lock(atalkdom->dom_mtx);
lck_mtx_assert(atalkdom->dom_mtx, LCK_MTX_ASSERT_NOTOWNED);
lck_mtx_lock(atalkdom->dom_mtx);