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/netatm/atm_usrreq.c | |
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/netatm/atm_usrreq.c')
-rw-r--r-- | sys/netatm/atm_usrreq.c | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c index 9b58741..4ea353f 100644 --- a/sys/netatm/atm_usrreq.c +++ b/sys/netatm/atm_usrreq.c @@ -66,27 +66,19 @@ static int atm_dgram_info(caddr_t); * New-style socket request routines */ struct pr_usrreqs atm_dgram_usrreqs = { - atm_proto_notsupp1, /* pru_abort */ - pru_accept_notsupp, /* pru_accept */ - atm_dgram_attach, /* pru_attach */ - atm_proto_notsupp2, /* pru_bind */ - pru_connect_notsupp, /* pru_connect */ - pru_connect2_notsupp, /* pru_connect2 */ - atm_dgram_control, /* pru_control */ - atm_proto_notsupp1, /* pru_detach */ - atm_proto_notsupp1, /* pru_disconnect */ - pru_listen_notsupp, /* pru_listen */ - atm_proto_notsupp3, /* pru_peeraddr */ - pru_rcvd_notsupp, /* pru_rcvd */ - pru_rcvoob_notsupp, /* pru_rcvoob */ - atm_proto_notsupp4, /* pru_send */ - pru_sense_null, /* pru_sense */ - atm_proto_notsupp1, /* pru_shutdown */ - atm_proto_notsupp3, /* pru_sockaddr */ - NULL, /* pru_sosend */ - NULL, /* pru_soreceive */ - NULL, /* pru_sooll */ - pru_sosetlabel_null /* pru_sosetlabel */ + .pru_abort = atm_proto_notsupp1, + .pru_attach = atm_dgram_attach, + .pru_bind = atm_proto_notsupp2, + .pru_control = atm_dgram_control, + .pru_detach = atm_proto_notsupp1, + .pru_disconnect = atm_proto_notsupp1, + .pru_peeraddr = atm_proto_notsupp3, + .pru_send = atm_proto_notsupp4, + .pru_shutdown = atm_proto_notsupp1, + .pru_sockaddr = atm_proto_notsupp3, + .pru_sosend = NULL, + .pru_soreceive = NULL, + .pru_sopoll = NULL, }; |