[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] [patch] inetd: set environment variables for remote

From: Richard Dawe
Subject: Re: [bug-inetutils] [patch] inetd: set environment variables for remote host, ip and local port
Date: Tue, 25 Jul 2006 19:47:58 +0100
User-agent: Thunderbird (X11/20060614)


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.
> +2006-07-21  Dirk Jagdmann  <address@hidden>
> +
> +     * inetd.c (main): set environment variables inetd_remotehost,
> +     inetd_remoteip, inetd_port to corresponding values from client who
> +     connected to inetd.
> +

I wonder if it would be better to use the same environment variables as
"tcpserver" from ucspi-tcp by Dan Bernstein. See:


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]