add net_info.host_name

This commit is contained in:
Doug MacEachern 2005-07-11 22:43:56 +00:00
parent 62188b3ee0
commit 75bbbb0f45
2 changed files with 7 additions and 0 deletions

View File

@ -568,6 +568,11 @@ my %classes = (
desc => '', desc => '',
plat => '' plat => ''
}, },
{
name => 'host_name', type => 'String',
desc => '',
plat => ''
},
{ {
name => 'domain_name', type => 'String', name => 'domain_name', type => 'String',
desc => '', desc => '',

View File

@ -388,9 +388,11 @@ sigar_file_system_usage_get(sigar_t *sigar,
#endif #endif
#define SIGAR_MAXDOMAINNAMELEN 256 #define SIGAR_MAXDOMAINNAMELEN 256
#define SIGAR_MAXHOSTNAMELEN 256
typedef struct { typedef struct {
char default_gateway[INET6_ADDRSTRLEN]; char default_gateway[INET6_ADDRSTRLEN];
char host_name[SIGAR_MAXHOSTNAMELEN];
char domain_name[SIGAR_MAXDOMAINNAMELEN]; char domain_name[SIGAR_MAXDOMAINNAMELEN];
char dhcp_server[INET6_ADDRSTRLEN]; char dhcp_server[INET6_ADDRSTRLEN];
char primary_dns[INET6_ADDRSTRLEN]; char primary_dns[INET6_ADDRSTRLEN];