remove dhcp_server from net_info
This commit is contained in:
parent
ac2c89b0a9
commit
3ff4089db1
|
@ -578,11 +578,6 @@ my %classes = (
|
|||
desc => '',
|
||||
plat => ''
|
||||
},
|
||||
{
|
||||
name => 'dhcp_server', type => 'String',
|
||||
desc => '',
|
||||
plat => ''
|
||||
},
|
||||
{
|
||||
name => 'primary_dns', type => 'String',
|
||||
desc => '',
|
||||
|
|
|
@ -37,9 +37,6 @@ public class NetInfo extends SigarCommandBase {
|
|||
|
||||
println("secondary dns........." +
|
||||
info.getSecondaryDns());
|
||||
|
||||
println("dhcp server..........." +
|
||||
info.getDhcpServer());
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
|
|
|
@ -394,7 +394,6 @@ typedef struct {
|
|||
char default_gateway[INET6_ADDRSTRLEN];
|
||||
char host_name[SIGAR_MAXHOSTNAMELEN];
|
||||
char domain_name[SIGAR_MAXDOMAINNAMELEN];
|
||||
char dhcp_server[INET6_ADDRSTRLEN];
|
||||
char primary_dns[INET6_ADDRSTRLEN];
|
||||
char secondary_dns[INET6_ADDRSTRLEN];
|
||||
} sigar_net_info_t;
|
||||
|
|
|
@ -1668,11 +1668,12 @@ SIGAR_DECLARE(int) sigar_net_info_get(sigar_t *sigar,
|
|||
SIGAR_SSTRCPY(netinfo->default_gateway,
|
||||
info->GatewayList.IpAddress.String);
|
||||
}
|
||||
#if 0
|
||||
if (info->DhcpEnabled) {
|
||||
SIGAR_SSTRCPY(netinfo->dhcp_server,
|
||||
info->DhcpServer.IpAddress.String);
|
||||
}
|
||||
|
||||
#endif
|
||||
info = info->Next;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue