| Extracted from Pike v7.8 release 700 at 2013-06-08.

[Top]
Protocols
Protocols.IPv6

# Method Protocols.IPv6.parse_addr()

Method parse_addr

  `array(int(0..65535)) parse_addr(string addr)`

Description

  Parses an IPv6 address on the formatted hexadecimal `"x:x:x:x:x:x:x:x"` form, or any of the shorthand varieties (see RFC 2373, section 2.2).

  The address is returned as an 8-element array where each element is the value of the corresponding field. Zero is returned if addr is incorrectly formatted.

See also

  format_addr_short