Lines Matching refs:address
6 * Validate the given IPv4 or IPv6 address.
8 * @param address the IP address as a String.
10 * @return true if a valid address, false otherwise
13 String address)
15 return isValidIPv4(address) || isValidIPv6(address);
19 * Validate the given IPv4 or IPv6 address and netmask.
21 * @param address the IP address as a String.
23 * @return true if a valid address with netmask, false otherwise
26 String address)
28 return isValidIPv4WithNetmask(address) || isValidIPv6WithNetmask(address);
32 * Validate the given IPv4 address.
34 * @param address the IP address as a String.
36 * @return true if a valid IPv4 address, false otherwise
39 String address)
41 if (address.length() == 0)
49 String temp = address+".";
80 String address)
82 int index = address.indexOf("/");
83 String mask = address.substring(index + 1);
85 return (index > 0) && isValidIPv4(address.substring(0, index))
90 String address)
92 int index = address.indexOf("/");
93 String mask = address.substring(index + 1);
95 return (index > 0) && (isValidIPv6(address.substring(0, index))
114 * Validate the given IPv6 address.
116 * @param address the IP address as a String.
118 * @return true if a valid IPv4 address, false otherwise
121 String address)
123 if (address.length() == 0)
131 String temp = address + ":";
154 octets++; // add an extra one as address covers 2 words.