add net_info.host_name
This commit is contained in:
parent
62188b3ee0
commit
75bbbb0f45
|
@ -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 => '',
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue