From owner-freebsd-bugs Wed May 27 14:46:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09492 for freebsd-bugs-outgoing; Wed, 27 May 1998 14:46:25 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09392 for ; Wed, 27 May 1998 14:45:44 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA18368; Wed, 27 May 1998 14:40:03 -0700 (PDT) Received: from ussenterprise.ufp.org (bicknell@ussenterprise.ufp.org [209.12.7.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA08157 for ; Wed, 27 May 1998 14:39:44 -0700 (PDT) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.8.8/8.8.7) id RAA03805; Wed, 27 May 1998 17:39:28 -0400 (EDT) Message-Id: <199805272139.RAA03805@ussenterprise.ufp.org> Date: Wed, 27 May 1998 17:39:28 -0400 (EDT) From: Leo Bicknell Reply-To: bicknell@ufp.org To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/6774: bind(3)/libc improvement Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 6774 >Category: kern >Synopsis: bind(3)/libc improvement >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 27 14:40:01 PDT 1998 >Last-Modified: >Originator: Leo Bicknell >Organization: United Federation of Planets >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: Any FreeBSD 2.x system. >Description: Many programs bind to "wildcard" addresses for the purposes of getting a local IP address/port assigment. This works fine when a machine has a single interface, but for machines with multiple physical or logical (alias) interfaces this is not always appropriate. For instance, on a machine with 10 aliases the "telnet" service, as managed by inetd(8) will respond to all 10 addresses. What I propose is an enviornment variable, "LOCAL_BIND" which would be used by the bind(3) code. If this does not exist, the traditional behavior would occur. On the other hand, if it was set to an IP address on the local system a "bind" call to the wildcard address would go to that address, and that address only. A further extension would be to have a list of acceptable addresses. This would allow things like an outbound telnet connection from a particular address forced by the user, or having a program like inetd listen only to some addresses without chaning the code of these user applications. >How-To-Repeat: N/A >Fix: N/A >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message