From owner-freebsd-net Sat Oct 24 23:19:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA10971 for freebsd-net-outgoing; Sat, 24 Oct 1998 23:19:20 -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 XAA10964 for ; Sat, 24 Oct 1998 23:19:16 -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 RAA23806; Sun, 25 Oct 1998 17:18:29 +1100 (EST) Date: Sun, 25 Oct 1998 17:18:29 +1100 (EST) From: Nicholas Charles Brawn X-Sender: ncb05@banshee.cs.uow.edu.au To: Don Lewis cc: freebsd-net@FreeBSD.ORG Subject: Re: How does kernel assign local port? In-Reply-To: <199810250600.XAA24646@salsa.gv.tsc.tdk.com> 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 On Sat, 24 Oct 1998, Don Lewis wrote: > It's done in in_pcbbind() in netinet/in_pcb.c. In the case of telnet, > the call is done by tcp_connect() in netinet/tcp_usrreq.c. > I have yet to look at the source (not at work box), but why are there two different functions to assign the local port, instead of just one? 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