diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-10-30 19:44:40 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-10-30 19:44:40 +0000 |
commit | 49831ed8da06ffadf684484671b4561c9ac55f9f (patch) | |
tree | 779e3d7a8028f1ac29696c62ad8b70ba7bc70d2e /sys/netgraph/bluetooth/include | |
parent | 1d93f083bf03400439b86271732e2b3f17ba284c (diff) | |
download | FreeBSD-src-49831ed8da06ffadf684484671b4561c9ac55f9f.zip FreeBSD-src-49831ed8da06ffadf684484671b4561c9ac55f9f.tar.gz |
Push the assignment of a new or updated so_qlimit from solisten()
following the protocol pru_listen() call to solisten_proto(), so
that it occurs under the socket lock acquisition that also sets
SO_ACCEPTCONN. This requires passing the new backlog parameter
to the protocol, which also allows the protocol to be aware of
changes in queue limit should it wish to do something about the
new queue limit. This continues a move towards the socket layer
acting as a library for the protocol.
Bump __FreeBSD_version due to a change in the in-kernel protocol
interface. This change has been tested with IPv4 and UNIX domain
sockets, but not other protocols.
Diffstat (limited to 'sys/netgraph/bluetooth/include')
-rw-r--r-- | sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h | 2 | ||||
-rw-r--r-- | sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h b/sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h index ff04ce2..39c126d 100644 --- a/sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h +++ b/sys/netgraph/bluetooth/include/ng_btsocket_l2cap.h @@ -195,7 +195,7 @@ int ng_btsocket_l2cap_control (struct socket *, u_long, caddr_t, int ng_btsocket_l2cap_ctloutput (struct socket *, struct sockopt *); int ng_btsocket_l2cap_detach (struct socket *); int ng_btsocket_l2cap_disconnect (struct socket *); -int ng_btsocket_l2cap_listen (struct socket *, struct thread *); +int ng_btsocket_l2cap_listen (struct socket *, int, struct thread *); int ng_btsocket_l2cap_peeraddr (struct socket *, struct sockaddr **); int ng_btsocket_l2cap_send (struct socket *, int, struct mbuf *, struct sockaddr *, struct mbuf *, diff --git a/sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h b/sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h index 4dd1b82..b280ae3 100644 --- a/sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h +++ b/sys/netgraph/bluetooth/include/ng_btsocket_rfcomm.h @@ -326,7 +326,7 @@ int ng_btsocket_rfcomm_control (struct socket *, u_long, caddr_t, int ng_btsocket_rfcomm_ctloutput (struct socket *, struct sockopt *); int ng_btsocket_rfcomm_detach (struct socket *); int ng_btsocket_rfcomm_disconnect (struct socket *); -int ng_btsocket_rfcomm_listen (struct socket *, struct thread *); +int ng_btsocket_rfcomm_listen (struct socket *, int, struct thread *); int ng_btsocket_rfcomm_peeraddr (struct socket *, struct sockaddr **); int ng_btsocket_rfcomm_send (struct socket *, int, struct mbuf *, struct sockaddr *, struct mbuf *, |