remove dhcp_server from net_info

This commit is contained in:
Doug MacEachern committed 2005-07-17 17:46:07 +00:00
1 parent ac2c89b0a9
commit 3ff4089db1
4 files changed
+2 -10

No files matched your search

-5
View File
@@ -578,11 +578,6 @@ my %classes = (
desc => '', desc => '',
plat => '' plat => ''
}, },
{
name => 'dhcp_server', type => 'String',
desc => '',
plat => ''
},
{ {
name => 'primary_dns', type => 'String', name => 'primary_dns', type => 'String',
desc => '', desc => '',
@@ -37,9 +37,6 @@ public class NetInfo extends SigarCommandBase {
println("secondary dns........." + println("secondary dns........." +
info.getSecondaryDns()); info.getSecondaryDns());
println("dhcp server..........." +
info.getDhcpServer());
} }
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
-1
View File
@@ -394,7 +394,6 @@ typedef struct {
char default_gateway[INET6_ADDRSTRLEN]; char default_gateway[INET6_ADDRSTRLEN];
char host_name[SIGAR_MAXHOSTNAMELEN]; char host_name[SIGAR_MAXHOSTNAMELEN];
char domain_name[SIGAR_MAXDOMAINNAMELEN]; char domain_name[SIGAR_MAXDOMAINNAMELEN];
char dhcp_server[INET6_ADDRSTRLEN];
char primary_dns[INET6_ADDRSTRLEN]; char primary_dns[INET6_ADDRSTRLEN];
char secondary_dns[INET6_ADDRSTRLEN]; char secondary_dns[INET6_ADDRSTRLEN];
} sigar_net_info_t; } sigar_net_info_t;
+2 -1
View File
@@ -1668,11 +1668,12 @@ SIGAR_DECLARE(int) sigar_net_info_get(sigar_t *sigar,
SIGAR_SSTRCPY(netinfo->default_gateway, SIGAR_SSTRCPY(netinfo->default_gateway,
info->GatewayList.IpAddress.String); info->GatewayList.IpAddress.String);
} }
#if 0
if (info->DhcpEnabled) { if (info->DhcpEnabled) {
SIGAR_SSTRCPY(netinfo->dhcp_server, SIGAR_SSTRCPY(netinfo->dhcp_server,
info->DhcpServer.IpAddress.String); info->DhcpServer.IpAddress.String);
} }
#endif
info = info->Next; info = info->Next;
} }