From owner-freebsd-net Sat Oct 24 23:06:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA10342 for freebsd-net-outgoing; Sat, 24 Oct 1998 23:06:55 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA10337 for ; Sat, 24 Oct 1998 23:06:53 -0700 (PDT) (envelope-from xroot@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id XAA14600; Sat, 24 Oct 1998 23:07:13 -0700 (PDT) Message-Id: <199810250607.XAA14600@implode.root.com> To: Nicholas Charles Brawn cc: freebsd-net@FreeBSD.ORG Subject: Re: How does kernel assign local port? In-reply-to: Your message of "Sun, 25 Oct 1998 16:03:25 +1100." From: David Greenman Reply-To: dg@root.com Date: Sat, 24 Oct 1998 23:07:13 -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >I've looked through uipc_syscalls.c and uipc_socket.c to try to >determine how & where the kernel assigns the local port a client program >(ie telnet(1)) binds to. I've specifically looked at connect() and >soconnect() but weren't able to determine how they are assigned. Anyone >able to give me a hand here? in_pcbbind() in /sys/netinet/in_pcb.c -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message