This patch adds the IP/port to the 'Fetching' log lines for wapbox. This is for troubleshooting particular users' traffic as well as tracking down coding issues (ie. file descriptor leaks). :P
Jon
Index: gw/wap-appl.c
===================================================================
RCS file: /home/cvs/gateway/gw/wap-appl.c,v
retrieving revision 1.109
diff -u -p -d -r1.109 wap-appl.c
--- gw/wap-appl.c 18 Feb 2005 13:13:51 -0000 1.109
+++ gw/wap-appl.c 4 Mar 2005 15:28:17 -0000
@@ -1141,8 +1141,9 @@ static void start_fetch(WAPEvent *event)
}
msisdn = radius_acct_get_msisdn(addr_tuple->remote->address);
- info(0, "Fetching URL <%s> for MSISDN <%s>", octstr_get_cstr(url),
- msisdn ? octstr_get_cstr(msisdn) : "");
+ info(0, "Fetching URL <%s> for MSISDN <%s>, IP <%s:%d>",
octstr_get_cstr(url),
+ msisdn ? octstr_get_cstr(msisdn) : "",
octstr_get_cstr(addr_tuple->remote->address),
+ addr_tuple->remote->port);
/*
* XXX this URL mapping needs to be rebuild! st.
