You are here

private function IpAddress::packIp6 in IP address fields 8

Same name and namespace in other branches
  1. 2.0.x src/IpAddress.php \Drupal\field_ipaddress\IpAddress::packIp6()

Converts an IPv6 to its binary representation.

1 call to IpAddress::packIp6()
IpAddress::calcCidr6 in src/IpAddress.php
Calculates the IP range for an IPv6 CIDR formatted range.

File

src/IpAddress.php, line 266

Class

IpAddress
IpTools class.

Namespace

Drupal\field_ipaddress

Code

private function packIp6($ip) {
  return inet_pton($ip);
}