version 1.6.56.2, 2012/04/23 23:40:41 |
version 1.7, 2012/03/21 10:10:37 |
Line 49 char paranoid[] = STRING_PARANOID; |
|
Line 49 char paranoid[] = STRING_PARANOID; |
|
|
|
/* eval_user - look up user name */ |
/* eval_user - look up user name */ |
|
|
char *eval_user(request) |
char * |
struct request_info *request; |
eval_user(struct request_info *request) |
{ |
{ |
if (request->user[0] == 0) { |
if (request->user[0] == 0) { |
(void)strlcpy(request->user, unknown, sizeof(request->user)); |
(void)strlcpy(request->user, unknown, sizeof(request->user)); |
Line 62 struct request_info *request; |
|
Line 62 struct request_info *request; |
|
|
|
/* eval_hostaddr - look up printable address */ |
/* eval_hostaddr - look up printable address */ |
|
|
char *eval_hostaddr(host) |
char * |
struct host_info *host; |
eval_hostaddr(struct host_info *host) |
{ |
{ |
if (host->addr[0] == 0) { |
if (host->addr[0] == 0) { |
(void)strlcpy(host->addr, unknown, sizeof(host->addr)); |
(void)strlcpy(host->addr, unknown, sizeof(host->addr)); |
Line 75 struct host_info *host; |
|
Line 75 struct host_info *host; |
|
|
|
/* eval_hostname - look up host name */ |
/* eval_hostname - look up host name */ |
|
|
char *eval_hostname(host) |
char * |
struct host_info *host; |
eval_hostname(struct host_info *host) |
{ |
{ |
if (host->name[0] == 0) { |
if (host->name[0] == 0) { |
(void)strlcpy(host->name, unknown, sizeof(host->name)); |
(void)strlcpy(host->name, unknown, sizeof(host->name)); |
Line 88 struct host_info *host; |
|
Line 88 struct host_info *host; |
|
|
|
/* eval_hostinfo - return string with host name (preferred) or address */ |
/* eval_hostinfo - return string with host name (preferred) or address */ |
|
|
char *eval_hostinfo(host) |
char * |
struct host_info *host; |
eval_hostinfo(struct host_info *host) |
{ |
{ |
char *hostname; |
char *hostname; |
|
|
Line 107 struct host_info *host; |
|
Line 107 struct host_info *host; |
|
|
|
/* eval_client - return string with as much about the client as we know */ |
/* eval_client - return string with as much about the client as we know */ |
|
|
char *eval_client(request) |
char * |
struct request_info *request; |
eval_client(struct request_info *request) |
{ |
{ |
static char both[2 * STRING_LENGTH]; |
static char both[2 * STRING_LENGTH]; |
char *hostinfo = eval_hostinfo(request->client); |
char *hostinfo = eval_hostinfo(request->client); |
Line 127 struct request_info *request; |
|
Line 127 struct request_info *request; |
|
|
|
/* eval_server - return string with as much about the server as we know */ |
/* eval_server - return string with as much about the server as we know */ |
|
|
char *eval_server(request) |
char * |
struct request_info *request; |
eval_server(struct request_info *request) |
{ |
{ |
static char both[2 * STRING_LENGTH]; |
static char both[2 * STRING_LENGTH]; |
char *host = eval_hostinfo(request->server); |
char *host = eval_hostinfo(request->server); |