C++ Native Functions: com.teracloud.streams.network.ipv6

This page documents native functions that can be invoked from SPL, including the SPL interfaces that can be used to invoke each of the native functions.

Functions

public rstring compactIPV6(rstring ip)

Compacts a valid IPv6 address (RFC3513). The ip argument must be a valid IPv6 address, otherwise an empty string is returned.

public rstring convertIPV6AddressNumericToString(list <uint8>[16] ipv6AddressNumeric)

This function converts a sixteen-byte binary representation of an IPv6 address into a string representation.

public list<uint8>[16] convertIPV6AddressStringToNumeric(rstring ipv6AddressString)

This function converts a string representation of an IPv6 address into a sixteen-byte binary representation. If the string does not represent a valid IPv6 address, zero is returned.

public rstring expandIPV6(rstring ip)

Expands a valid IPv6 address (RFC3513). The ip argument must be a valid IPv6 address, otherwise an empty string is returned.

public boolean isEqualTo(rstring ip1, rstring ip2)

Returns true if ip1 and ip2 are valid IPv6 addresses and ip1 address is equal to ip2 address. Otherwise returns false.

public boolean isGreaterThan(rstring ip1, rstring ip2)

Returns true if ip1 and ip2 are valid IPv6 addresses and ip1 address is greater than ip2 address. Otherwise returns false.

public boolean isIPV6Address(rstring value)

Returns true if the value parameter contains a valid IPv6 address. Otherwise returns false.

public boolean isIPV6CIDRNotation(rstring networkCIDR)

Returns true if the networkCIDR argument contains a valid IPv6 network address in CIDR format (i.e. 2001:db8::/32). Otherwise returns false.

public boolean isInIPRange(rstring startIP, rstring endIP, rstring ip)

Returns true if startIP, endIP and ip are valid IPv6 addresses and ip falls within the range from startIP (inclusive) to endIP (exclusive). Otherwise returns false.

public boolean isInNetwork(rstring networkCIDR, rstring ip)

Return true if ip address is in the network provided by the networkCIDR argument. The networkCIDR argument must be a valid IPv6 network in CIDR format and the ip argument must be a valid IPv6 address. Otherwise returns false.

public boolean isInNetworkList(list<rstring> networkList, rstring ip)

Return true if ip address is in at least one of the networks provided by the networkList argument. Each of the networks in the list must be a valid IPv6 network in CIDR format format and the ip argument must be a valid IPv6 address. Otherwise returns false.

public boolean isLessThan(rstring ip1, rstring ip2)

Returns true if ip1 and ip2 are valid IPv6 addresses and ip1 address is less than ip2 address. Otherwise returns false.

public boolean isLinkLocal(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is a link-local address (RFC3513). Otherwise returns false.

public boolean isLoopback(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is a loopback address (RFC3513). Otherwise returns false.

public boolean isMulticast(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is a multicast address (RFC3513). Otherwise returns false.

public boolean isSiteLocal(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is a site-local address (RFC3513). Otherwise returns false.

public boolean isUnspecified(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is a unspecified (RFC3513). Otherwise returns false.

public boolean isV4Compatible(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is an "IPv4-compatible IPv6 address" (RFC3513). Otherwise returns false.

public boolean isV4Mapped(rstring ip)

Returns true if a valid IPv6 address was provided and the IP address is an "IPv4-mapped IPv6 address" (RFC3513). Otherwise returns false.