Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Given a filedescriptor, how can I find source IP?? Message-ID: <6924@auspex.auspex.com> Date: 30 Mar 91 23:57:30 GMT References: <1991Mar23.041824.3130@msuinfo.cl.msu.edu> <1991Mar26.064131.24485@mtxinu.COM> <1991Mar26.170837.110@msuinfo.cl.msu.edu> Organization: Auspex Systems, Santa Clara Lines: 8 >It turns out that in SunOS3.x, inetd by default passed the ip address >as a command line arg to in.telnetd. > >In SunOS4.1 they "fixed" it so that it does not. More correctly, in SunOS 4.*0* they picked up the 4.3BSD "inetd", which handed you a socket for the connection on file descriptors 0, 1, and 2, and didn't hand you the IP address as a command-line argument.