MCPcopy Index your code
hub / github.com/cSploit/android / next

Method next

cSploit/src/org/csploit/android/net/IP4Address.java:37–51  ·  view source on GitHub ↗
(IP4Address address)

Source from the content-addressed store, hash-verified

35 }
36
37 public static IP4Address next(IP4Address address) throws UnknownHostException{
38 byte[] addr = address.toByteArray();
39
40 int i = addr.length - 1;
41 while(i >= 0 && addr[i] == (byte) 0xff){
42 addr[i] = 0;
43 i--;
44 }
45
46 if(i >= 0){
47 addr[i]++;
48 return new IP4Address(addr);
49 } else
50 return null;
51 }
52
53
54 public IP4Address(int address) throws UnknownHostException{

Callers 5

addReferenceMethod · 0.80
addExploitMethod · 0.80
getCookiesFromHeadersMethod · 0.80
unMsgMethod · 0.80
ProtocolAdapterMethod · 0.80

Calls 1

toByteArrayMethod · 0.80

Tested by

no test coverage detected