Re: client IP lookup - (Squid 2.5-Stable6)

From: Joe Coco <anesthes@dont-contact.us>
Date: Sun, 21 Nov 2004 16:02:34 -0500 (EST)

Hi Henrik,

Problem is where I'm calling is within ClientAccessCheckDone(int answer,
void *data), from client_side.c so it doesn't have the full request->
struct.

Data appears to be an element within request-> (http) rather than the
whole request struct. Perhaps it will be easier just to copy over
client_addr to the http-> struct.

Thanks,

-- Joe

On Wed, 10 Nov 2004, Henrik Nordstrom wrote:

>
>
> On Tue, 9 Nov 2004, Joe Coco wrote:
>
> > I can't seem to find an entry in the structure clientHttpRequest for the
> > clients source IP address (or authenticated username)?
>
> The IP you have in request->client_addr.
>
> Authentication is best explained by looking at the acl code.
>
> clientHttpRequest is just a intermediate data type containing the local
> state information needed for the client side parts of Squid to keep track
> of the progress of the request, not the request or connection as such
> (sits between the connection and the request)
>
> Regards
> Henrik
>
Received on Sun Nov 21 2004 - 11:39:18 MST

This archive was generated by hypermail pre-2.1.9 : Tue Nov 30 2004 - 12:00:03 MST