From owner-cvs-lib Thu May 30 21:00:31 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA06978 for cvs-lib-outgoing; Thu, 30 May 1996 21:00:31 -0700 (PDT) Received: (from peter@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA06956; Thu, 30 May 1996 21:00:23 -0700 (PDT) Date: Thu, 30 May 1996 21:00:23 -0700 (PDT) From: Peter Wemm Message-Id: <199605310400.VAA06956@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/net rcmd.c Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 96/05/30 21:00:22 Modified: lib/libc/net rcmd.c Log: Use the setsockopt for IP_PORTRANGE to cause rresvport() to allocate a privileged port within a single bind(), rather than looping through attempts to bind over and over again over progressively lower ports. This should speed up rlogin/rsh etc, and will probably cure some of the strange rlogin hangs that have been reported in the past where rresvport() managed to bind() to a port address that it shouldn't have. Revision Changes Path 1.8 +24 -12 src/lib/libc/net/rcmd.c