Skip to content

Commit ef0a543

Browse files
committed
Changes before merge
1 parent d29c380 commit ef0a543

File tree

6 files changed

+7
-222
lines changed

6 files changed

+7
-222
lines changed

app/src/main/java/com/stealthcotper/networktools/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ private void doPortScan() throws Exception {
201201

202202
// Perform synchronous port scan
203203
appendResultsText("PortScanning IP: " + ipAddress);
204-
ArrayList<Integer> openPorts = PortScan.onAddress(ipAddress).setPort(21).doScan();
204+
ArrayList<Integer> openPorts = PortScan.onAddress(ipAddress).setPort(21).setMethodTCP().doScan();
205205

206206
final long startTimeMillis = System.currentTimeMillis();
207207

208208
// Perform an asynchronous port scan
209-
PortScan.onAddress(ipAddress).setPortsAll().doScan(new PortScan.PortListener() {
209+
PortScan.onAddress(ipAddress).setPortsAll().setMethodTCP().doScan(new PortScan.PortListener() {
210210
@Override
211211
public void onResult(int portNo, boolean open) {
212212
if (open) appendResultsText("Open: " + portNo);

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ subprojects {
2626
ext.targetSdkVer = 27
2727
ext.supportLibVer = "27.1.1"
2828

29-
ext.versionName = "0.3.08"
30-
ext.versionCode = 13
29+
ext.versionName = "0.4.0"
30+
ext.versionCode = 14
3131
}

library/src/main/java/com/stealthcopter/networktools/MACTools.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private MACTools() {
1818
*
1919
* @param macAddress - the MAC address to check
2020
* @return - true if it is valid MAC address in IEEE802 format (either hyphen or colon seperated)
21-
* eg: "01:23:45:67:89:AB:CD:EF" or "01-23-45-67-89-AB-CD-EF"
21+
* eg: "01:23:45:67:89:AB" or "01-23-45-67-89-AB"
2222
*/
2323
public static boolean isValidMACAddress(final String macAddress) {
2424
return macAddress != null && PATTERN_MAC.matcher(macAddress).matches();
@@ -29,7 +29,7 @@ public static boolean isValidMACAddress(final String macAddress) {
2929
* Convert a MAC string to bytes
3030
*
3131
* @param macStr - MAC string in IEEE802 format (either hyphen or colon seperated)
32-
* eg: "01:23:45:67:89:AB:CD:EF" or "01-23-45-67-89-AB-CD-EF"
32+
* eg: "01:23:45:67:89:AB" or "01-23-45-67-89-AB"
3333
* @return - MAC formatted in bytes
3434
* @throws IllegalArgumentException - if mac address is invalid
3535
*/

library/src/main/java/com/stealthcopter/networktools/traceroute/TraceObj.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

library/src/main/java/com/stealthcopter/networktools/traceroute/Traceroute.java

Lines changed: 0 additions & 204 deletions
This file was deleted.

library/src/test/java/com/stealthcopter/networktools/IPToolsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void testIsIPv6AddressesStandard() {
8181
}
8282

8383
@Test
84-
@Ignore // Not working yet, possibly not correct pattern for compression
84+
@Ignore // Recheck this, either test is broken or regex is wrong
8585
public void testIPv6HexCompressedAddress() {
8686
for (String address : getIPv6AddressesHexCompresed()) {
8787
assertTrue(IPTools.isIPv6HexCompressedAddress(address));

0 commit comments

Comments
 (0)