fixed discovery

ip ->  ipv4, ipv6
This commit is contained in:
snoop 2018-04-26 16:27:26 +09:00
parent c2c31172e6
commit 1d38963e91
4 changed files with 173 additions and 41 deletions

View File

@ -4,43 +4,80 @@ package com.loafle.overflow.model.discovery;
* DiscoveryHost * DiscoveryHost
*/ */
public class DiscoverHost { public class DiscoverHost {
private String firstScanRange; private String firstScanRangev4;
private String lastScanRange; private String lastScanRangev4;
private String[] excludeHosts; private String[] excludeHostsv4;
private String[] includeHosts; private String[] includeHostsv4;
private String firstScanRangev6;
private String lastScanRangev6;
private String[] excludeHostsv6;
private String[] includeHostsv6;
private DiscoverPort discoverPort; private DiscoverPort discoverPort;
public String getFirstScanRange() { public String getFirstScanRangev4() {
return firstScanRange; return firstScanRangev4;
} }
public void setFirstScanRange(String firstScanRange) { public void setFirstScanRangev4(String firstScanRangev4) {
this.firstScanRange = firstScanRange; this.firstScanRangev4 = firstScanRangev4;
} }
public String getLastScanRange() { public String getLastScanRangev4() {
return lastScanRange; return lastScanRangev4;
} }
public void setLastScanRange(String lastScanRange) { public void setLastScanRangev4(String lastScanRangev4) {
this.lastScanRange = lastScanRange; this.lastScanRangev4 = lastScanRangev4;
} }
public String[] getExcludeHosts() { public String[] getExcludeHostsv4() {
return excludeHosts; return excludeHostsv4;
} }
public void setExcludeHosts(String[] excludeHosts) { public void setExcludeHostsv4(String[] excludeHostsv4) {
this.excludeHosts = excludeHosts; this.excludeHostsv4 = excludeHostsv4;
} }
public String[] getIncludeHosts() { public String[] getIncludeHostsv4() {
return includeHosts; return includeHostsv4;
} }
public void setIncludeHosts(String[] includeHosts) { public void setIncludeHostsv4(String[] includeHostsv4) {
this.includeHosts = includeHosts; this.includeHostsv4 = includeHostsv4;
}
public String getFirstScanRangev6() {
return firstScanRangev6;
}
public void setFirstScanRangev6(String firstScanRangev6) {
this.firstScanRangev6 = firstScanRangev6;
}
public String getLastScanRangev6() {
return lastScanRangev6;
}
public void setLastScanRangev6(String lastScanRangev6) {
this.lastScanRangev6 = lastScanRangev6;
}
public String[] getExcludeHostsv6() {
return excludeHostsv6;
}
public void setExcludeHostsv6(String[] excludeHostsv6) {
this.excludeHostsv6 = excludeHostsv6;
}
public String[] getIncludeHostsv6() {
return includeHostsv6;
}
public void setIncludeHostsv6(String[] includeHostsv6) {
this.includeHostsv6 = includeHostsv6;
} }
public DiscoverPort getDiscoverPort() { public DiscoverPort getDiscoverPort() {

View File

@ -6,35 +6,64 @@ import java.util.List;
* Created by snoop on 17. 9. 29. * Created by snoop on 17. 9. 29.
*/ */
public class DiscoveryStartInfo { public class DiscoveryStartInfo {
String startIp; String startIpv4;
String endIP; String endIPv4;
String excludeIp; String excludeIpv4;
String startIpv6;
String endIPv6;
String excludeIpv6;
String startPort; String startPort;
String endPort; String endPort;
List<String> services; List<String> services;
public String getStartIp() { public String getStartIpv4() {
return startIp; return startIpv4;
} }
public void setStartIp(String startIp) { public void setStartIpv4(String startIpv4) {
this.startIp = startIp; this.startIpv4 = startIpv4;
} }
public String getEndIP() { public String getEndIPv4() {
return endIP; return endIPv4;
} }
public void setEndIP(String endIP) { public void setEndIPv4(String endIPv4) {
this.endIP = endIP; this.endIPv4 = endIPv4;
} }
public String getExcludeIp() { public String getExcludeIpv4() {
return excludeIp; return excludeIpv4;
} }
public void setExcludeIp(String excludeIp) { public void setExcludeIpv4(String excludeIpv4) {
this.excludeIp = excludeIp; this.excludeIpv4 = excludeIpv4;
}
public String getStartIpv6() {
return startIpv6;
}
public void setStartIpv6(String startIpv6) {
this.startIpv6 = startIpv6;
}
public String getEndIPv6() {
return endIPv6;
}
public void setEndIPv6(String endIPv6) {
this.endIPv6 = endIPv6;
}
public String getExcludeIpv6() {
return excludeIpv6;
}
public void setExcludeIpv6(String excludeIpv6) {
this.excludeIpv6 = excludeIpv6;
} }
public String getStartPort() { public String getStartPort() {

View File

@ -10,7 +10,8 @@ import java.util.List;
public class Host { public class Host {
private long id; private long id;
private String ip; private String ipv4;
private String ipv6;
private String mac; private String mac;
private String os; private String os;
@ -30,12 +31,20 @@ public class Host {
this.id = id; this.id = id;
} }
public String getIp() { public String getIpv4() {
return ip; return ipv4;
} }
public void setIp(String ip) { public void setIpv4(String ipv4) {
this.ip = ip; this.ipv4 = ipv4;
}
public String getIpv6() {
return ipv6;
}
public void setIpv6(String ipv6) {
this.ipv6 = ipv6;
} }
public String getMac() { public String getMac() {

View File

@ -8,9 +8,66 @@ import java.util.Date;
public class Zone { public class Zone {
private long id; private long id;
private String network; private String network;
private String ip; private String ipv4;
private String ipv6;
private String iface; private String iface;
private String mac; private String mac;
private Date discoveredDate; private Date discoveredDate;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getNetwork() {
return network;
}
public void setNetwork(String network) {
this.network = network;
}
public String getIpv4() {
return ipv4;
}
public void setIpv4(String ipv4) {
this.ipv4 = ipv4;
}
public String getIpv6() {
return ipv6;
}
public void setIpv6(String ipv6) {
this.ipv6 = ipv6;
}
public String getIface() {
return iface;
}
public void setIface(String iface) {
this.iface = iface;
}
public String getMac() {
return mac;
}
public void setMac(String mac) {
this.mac = mac;
}
public Date getDiscoveredDate() {
return discoveredDate;
}
public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate;
}
} }