getfullhostname.c File Reference
#include "squid.h"
#include "getfullhostname.h"
#include "rfc2181.h"
#include "util.h"
Include dependency graph for getfullhostname.c:

Go to the source code of this file.

Functions

const char * getfullhostname (void)
 

Function Documentation

const char* getfullhostname ( void  )
Return values
NULLAn error occured.
*The fully qualified name (FQDN) of the current host. Pointer is only valid until the next call to the gethost*() functions.
Todo:
Make this a squid String result so the duration limit is flexible.
Todo:
convert this to a getaddrinfo() call

Definition at line 35 of file getfullhostname.c.

References buf, gethostbyname(), hostent::h_name, NULL, RFC2181_MAXHOSTNAMELEN, and xstrncpy().

Referenced by check_target_acl(), and print_trailer().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors