Hello. Dirk Jagdmann wrote: > I have just developed some very simple servers (with shell scripts) > which are run via inetd. For logging purposes I wanted to have the > remote hostname, ip and local port available in those shell scripts and > have made an extension to inetd which will put this information into the > environment on the forked process. [snip] > +2006-07-21 Dirk Jagdmann <[EMAIL PROTECTED]> > + > + * inetd.c (main): set environment variables inetd_remotehost, > + inetd_remoteip, inetd_port to corresponding values from client who > + connected to inetd. > + [snip]
I wonder if it would be better to use the same environment variables as "tcpserver" from ucspi-tcp by Dan Bernstein. See: http://cr.yp.to/ucspi-tcp/environment.html Bye, Rich =] -- Richard Dawe [ http://homepages.nildram.co.uk/~phekda/richdawe/ ] "You can't evaluate a man by logic alone." -- McCoy, "I, Mudd", Star Trek _______________________________________________ Bug-inetutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-inetutils
