Net_IPv6::uncompress() (Previous) (Next) Net_IPv6::getNetmask()

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Net_IPv6::getAddressType()

Net_IPv6::getAddressType() -- Returns the type of an IP address

Beschreibung

RFC 1883, Section 2.3 describes several types of addresses in the IPv6 addresse space. This methods tries to find the type of address for the given IP.

Warnung

Several address types are markers for reserved spaces and as consequence a subject to change.

Parameter

  • string $ip - the IP address in Hex format, compressed IPs are allowed

Rückgabewert

int - the addresstype

The type can be one of this constants:

  • NET_IPV6_MULTICAST

  • NET_IPV6_UNICAST_PROVIDER

  • NET_IPV6_LOCAL_LINK

  • NET_IPV6_LOCAL_SITE

  • NET_IPV6_UNKNOWN_TYPE

  • NET_IPV6_RESERVED_UNICAST_GEOGRAPHIC

  • NET_IPV6_RESERVED_IPX

  • NET_IPV6_RESERVED

  • NET_IPV6_RESERVED_NSAP

  • NET_IPV6_UNASSIGNED

Hinweise

Diese Methode kann statisch aufgerufen werden.

Method available since: Release 1.1.0

Net_IPv6::uncompress() (Previous) (Next) Net_IPv6::getNetmask()

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.