diff options
author | phk <phk@FreeBSD.org> | 2004-11-08 14:44:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-11-08 14:44:54 +0000 |
commit | 027fce30f5a18628851fd5615769543ef2e8c6ac (patch) | |
tree | 49490960ea53cad45a1b8763ff91948d8f401931 /sys/netnatm | |
parent | d24107be6b63ca9ccbc6bca190ef874651886c49 (diff) | |
download | FreeBSD-src-027fce30f5a18628851fd5615769543ef2e8c6ac.zip FreeBSD-src-027fce30f5a18628851fd5615769543ef2e8c6ac.tar.gz |
Initialize struct pr_userreqs in new/sparse style and fill in common
default elements in net_init_domain().
This makes it possible to grep these structures and see any bogosities.
Diffstat (limited to 'sys/netnatm')
-rw-r--r-- | sys/netnatm/natm.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/sys/netnatm/natm.c b/sys/netnatm/natm.c index f999f32..2318592 100644 --- a/sys/netnatm/natm.c +++ b/sys/netnatm/natm.c @@ -393,12 +393,17 @@ natm_usr_sockaddr(struct socket *so, struct sockaddr **nam) /* xxx - should be const */ struct pr_usrreqs natm_usrreqs = { - natm_usr_abort, pru_accept_notsupp, natm_usr_attach, natm_usr_bind, - natm_usr_connect, pru_connect2_notsupp, natm_usr_control, - natm_usr_detach, natm_usr_disconnect, pru_listen_notsupp, - natm_usr_peeraddr, pru_rcvd_notsupp, pru_rcvoob_notsupp, - natm_usr_send, pru_sense_null, natm_usr_shutdown, - natm_usr_sockaddr, sosend, soreceive, sopoll, pru_sosetlabel_null + .pru_abort = natm_usr_abort, + .pru_attach = natm_usr_attach, + .pru_bind = natm_usr_bind, + .pru_connect = natm_usr_connect, + .pru_control = natm_usr_control, + .pru_detach = natm_usr_detach, + .pru_disconnect = natm_usr_disconnect, + .pru_peeraddr = natm_usr_peeraddr, + .pru_send = natm_usr_send, + .pru_shutdown = natm_usr_shutdown, + .pru_sockaddr = natm_usr_sockaddr, }; #else /* !FREEBSD_USRREQS */ |