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/netinet/udp_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/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index b3af066..443b5db 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1111,9 +1111,16 @@ udp_peeraddr(struct socket *so, struct sockaddr **nam) } struct pr_usrreqs udp_usrreqs = { - udp_abort, pru_accept_notsupp, udp_attach, udp_bind, udp_connect, - pru_connect2_notsupp, in_control, udp_detach, udp_disconnect, - pru_listen_notsupp, udp_peeraddr, pru_rcvd_notsupp, - pru_rcvoob_notsupp, udp_send, pru_sense_null, udp_shutdown, - udp_sockaddr, sosend, soreceive, sopoll, in_pcbsosetlabel + .pru_abort = udp_abort, + .pru_attach = udp_attach, + .pru_bind = udp_bind, + .pru_connect = udp_connect, + .pru_control = in_control, + .pru_detach = udp_detach, + .pru_disconnect = udp_disconnect, + .pru_peeraddr = udp_peeraddr, + .pru_send = udp_send, + .pru_shutdown = udp_shutdown, + .pru_sockaddr = udp_sockaddr, + .pru_sosetlabel = in_pcbsosetlabel }; |