aboutsummaryrefslogtreecommitdiff
path: root/sys/netatm/ipatm/ipatm_load.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2005-10-30 19:44:40 +0000
committerRobert Watson <rwatson@FreeBSD.org>2005-10-30 19:44:40 +0000
commitd374e81efdc3cba56fdda9df539773070ca00dfe (patch)
tree779e3d7a8028f1ac29696c62ad8b70ba7bc70d2e /sys/netatm/ipatm/ipatm_load.c
parenta1cfcf9970412f9ce13e6673c8b699f9494fafe9 (diff)
downloadsrc-d374e81efdc3cba56fdda9df539773070ca00dfe.tar.gz
src-d374e81efdc3cba56fdda9df539773070ca00dfe.zip
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.
Notes
Notes: svn path=/head/; revision=151888
Diffstat (limited to 'sys/netatm/ipatm/ipatm_load.c')
-rw-r--r--sys/netatm/ipatm/ipatm_load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netatm/ipatm/ipatm_load.c b/sys/netatm/ipatm/ipatm_load.c
index 2e931cd015be..4376b6647b1e 100644
--- a/sys/netatm/ipatm/ipatm_load.c
+++ b/sys/netatm/ipatm/ipatm_load.c
@@ -524,7 +524,7 @@ ipatm_start()
*/
if ((err = atm_cm_listen(NULL, &ipatm_endpt,
(void *)(intptr_t)i, &ipatm_listeners[i].attr,
- &ipatm_listeners[i].conn)) != 0)
+ &ipatm_listeners[i].conn, -1)) != 0)
goto done;
}