From owner-freebsd-net Sat Oct 24 22:04:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA06752 for freebsd-net-outgoing; Sat, 24 Oct 1998 22:04:05 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from banshee.cs.uow.edu.au (banshee.cs.uow.edu.au [130.130.188.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA06747 for ; Sat, 24 Oct 1998 22:04:02 -0700 (PDT) (envelope-from ncb05@banshee.cs.uow.edu.au) Received: (from ncb05@localhost) by banshee.cs.uow.edu.au (8.9.1a/8.9.1) id QAA10860; Sun, 25 Oct 1998 16:03:25 +1100 (EST) Date: Sun, 25 Oct 1998 16:03:25 +1100 (EST) From: Nicholas Charles Brawn X-Sender: ncb05@banshee.cs.uow.edu.au To: freebsd-net@FreeBSD.ORG Subject: How does kernel assign local port? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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? Cheers, Nick -- Email: ncb@poboxes.com - http://www.poboxes.com/ncb Key fingerprint = DE 30 33 D3 16 91 C8 8D A7 F8 70 03 B7 77 1A 2A To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message