equal
deleted
inserted
replaced
181 * @param name String IPv6 address with optional /<prefix length> |
181 * @param name String IPv6 address with optional /<prefix length> |
182 * If /<prefix length> is present, address[] array will |
182 * If /<prefix length> is present, address[] array will |
183 * be 32 bytes long, otherwise 16. |
183 * be 32 bytes long, otherwise 16. |
184 * @throws IOException on error |
184 * @throws IOException on error |
185 */ |
185 */ |
186 private final static int MASKSIZE = 16; |
186 private static final int MASKSIZE = 16; |
187 private void parseIPv6(String name) throws IOException { |
187 private void parseIPv6(String name) throws IOException { |
188 |
188 |
189 int slashNdx = name.indexOf('/'); |
189 int slashNdx = name.indexOf('/'); |
190 if (slashNdx == -1) { |
190 if (slashNdx == -1) { |
191 address = InetAddress.getByName(name).getAddress(); |
191 address = InetAddress.getByName(name).getAddress(); |