> From [EMAIL PROTECTED] Mon Oct  8 13:51:28 2001
> Date: Mon, 8 Oct 2001 12:50:08 -0700 (PDT)
> From: Patrick Powell <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: Need real client IP address in filter
>
> > From [EMAIL PROTECTED] Tue Oct  2 12:07:04 2001
> > Date: Tue, 02 Oct 2001 13:56:47 -0400
> > To: [EMAIL PROTECTED]
> > From: Rick Cochran <[EMAIL PROTECTED]>
> > Subject: LPRng: Need real client IP address in filter
> >
> > I _desperately_ need for my print filter to know the REAL ip address of the 
> > lpr client (from the socket connection, not from the data which it sends in 
> > the control file).  Trust me.  I do.  Really.
> >
> > force_fqdn_hostname simply does not supply anything useful for that 
> > purpose.  That does not appear to be its purpose.
> >
> > My next solution was to patch linelist.c to stick the request IP in an 
> > environment variable which could be picked up by the filter.  This appeared 
> > to work, but really did not.  The filter would get an IP address, but it 
> > would not necessarily be the correct one.  I understand how this happens.
> >
> > I have now mercilessly hacked more code than I wanted to the effect that 
> > the 'H' line in the control file ends up with "IPnnn.nnn.nnn.nnn" appended 
> > to whatever seems to insist on being there no matter what I do.  This is 
> > good enough for now, but is not what I would call an esthetically pleasing 
> > solution.
> >
> > Any suggestions would be appreciated.
> >
> > -Rick
> >
> >
> > |Rick Cochran                                   phone: 607-255-7618|
> > |Network and Computing Systems, Cornell CIT       FAX: 607-255-8521|
> > |730 Rhodes Hall, Ithaca, N.Y. 14853        email: [EMAIL PROTECTED]|
....

OR in the next release you can use:

lp:
  :force_ipaddr_hostname

which will force the use of the IP address for the hostname like you wanted.

Patrick ("patch patch patch") Powell

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to