Date: Sat, 24 Oct 1998 23:22:33 -0700 From: Don Lewis <Don.Lewis@tsc.tdk.com> To: Nicholas Charles Brawn <ncb05@uow.edu.au>, Don Lewis <Don.Lewis@tsc.tdk.com> Cc: freebsd-net@FreeBSD.ORG Subject: Re: How does kernel assign local port? Message-ID: <199810250622.XAA24753@salsa.gv.tsc.tdk.com> In-Reply-To: Nicholas Charles Brawn <ncb05@uow.edu.au> "Re: How does kernel assign local port?" (Oct 25, 5:18pm)
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 25, 5:18pm, Nicholas Charles Brawn wrote: } Subject: Re: How does kernel assign local port? } 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? There is only one, tcp_connect() calls in_pcbbind(). There are lots of other places in the code that also call in_pcbbind(), but the call in tcp_connect() is the one that does the trick for telnet. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810250622.XAA24753>