Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 17:09:19 -0500 (CDT)
From:      Mike Silbersack <silby@silby.com>
To:        Peter Pentchev <roam@ringlet.net>
Cc:        kde@FreeBSD.org, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/sys/netinet in.h
Message-ID:  <20020415170727.D5071-100000@patrocles.silby.com>
In-Reply-To: <20020415182723.C358@straylight.oblivion.bg>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 15 Apr 2002, Peter Pentchev wrote:

> Well, ksirtet is a Tetris clone with network multiplayer capabilities;
> to host a server, you need to give it a port number to bind to.
> IPPORT_RESERVED is used as MIN_USER_PORT, so that the game kind of ensures
> that you enter a port in a (somewhat) valid range that it can bind to,
> when running as a normal user.
>
> I know that defining IPPORT_USERRESERVED as IPPORT_RESERVED will not
> give the same functionality as before, but it will give *some* working
> functionality - the game will be able to exercise a minimal validation
> of user input.  Of course, it would be perfect to make it use sysctl's,
> but that might well be overkill for a kde game :))
>
> G'luck,
> Peter
>
> --
> Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org

They shouldn't need to specify a port range; simply using an ephemeral
port should work more than adequately.

In the meantime, defining IPPORT_USERRESERVED = 5000 in that game is the
best patch.

Mike "Silby" Silbersack


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020415170727.D5071-100000>