From owner-freebsd-arch Tue Jun 20 10:26:48 2000 Delivered-To: freebsd-arch@freebsd.org Received: from smtp05.primenet.com (smtp05.primenet.com [206.165.6.135]) by hub.freebsd.org (Postfix) with ESMTP id 364C837BF77 for ; Tue, 20 Jun 2000 10:26:45 -0700 (PDT) (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp05.primenet.com (8.9.3/8.9.3) id KAA27041 for ; Tue, 20 Jun 2000 10:26:57 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp05.primenet.com, id smtpdAAA6baaW0; Tue Jun 20 10:26:48 2000 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id KAA19419 for arch@freebsd.org; Tue, 20 Jun 2000 10:26:33 -0700 (MST) From: Terry Lambert Message-Id: <200006201726.KAA19419@usr01.primenet.com> Subject: Suggested change to BSD sockets API To: arch@freebsd.org Date: Tue, 20 Jun 2000 17:26:32 +0000 (GMT) X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG One common problem I run into is that of cached state. In particular, if I have a dial-on-demand device that uses a dynamic IP address assignment negotiated with the remote side of the link, then all of my servers currently bound and listening for incoming connections have to be clobbered over the head for them to notice the IP address change. It seems to me that this could be better handled. The problem appears to be cached state information (I have been meaning to write a white paper on "cached state considered harmful"). For example, an inetd, a DNS server, or a sendmail bound to a network address on an interface must be rebound when the IP address changes. I'd like to suggest that a new socket binding type be used; one that binds not to an IP addres, but to an interface. The changes to support this don't seem that difficult; what do others think about this? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message