[squid-users] find current ip address in code

From: Siddhesh PaiRaikar <siddhesh.pairaikar@dont-contact.us>
Date: Mon, 16 Apr 2007 01:12:20 +0530

hi..

wat is the way to get the ip address of the machine whose request i am
currently processing... in the code that is....

what piece of code will i have to add to get the ip address...

i just am doing some validation and hence need to see if the ip address is
allowed to access the site or not. the rest is not an issue and is mostly
done ...

all i need now is how to get the ip address... if someone can plz tell me if
there is direct procedure for getting the ip address. if not plz suggest the
required code...

i am making the changes in store.c file where there are no implicit
references to the clients ip address so that i may get it directly ..unlike
other files like client_side.c

thanks

-- 
- Siddhesh
Received on Sun Apr 15 2007 - 13:42:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue May 01 2007 - 12:00:01 MDT