Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
V6.Prefix
SourceA module for manipulating IPv6 network prefixes (CIDR).
Type of a internet protocol subnet: an address and a prefix length.
prefix cidr
is the subnet prefix of cidr
where all non-prefix bits set to 0.
network_address cidr addr
is the address with prefix cidr
and suffix from addr
. See <http://tools.ietf.org/html/rfc4291#section-2.3>.
of_string_exn cidr
is the subnet prefix represented by the CIDR string, cidr
. Raises Parse_error
if cidr
is not a valid representation of a CIDR notation routing prefix.
Same as of_string_exn
but returns a result type instead of raising an exception.
Same as of_string_exn
but takes as an extra argument the offset into the string for reading.
to_string cidr
is the CIDR notation string representation of cidr
, i.e. XXX:XX:X::XXX/XX.
pp f cidr
outputs a human-readable representation of cidr
to the formatter f
.
to_buffer buf cidr
writes the string representation of cidr
to the buffer buf
.
of_netmask_exn ~netmask ~address
is the subnet prefix of address
with netmask netmask
.
of_netmask ~netmask ~address
is the cidr of address
with netmask netmask
.
subset ~subnet ~network
checks whether subnet
is contained within network
.
of_addr ip
create a subnet composed of only one address, ip
. It is the same as make 128 ip
.
Global Unicast addresses that don't use Modified EUI64 interface identifiers, ::/3.
hosts subnet
is the sequence of host addresses in this subnet
. By default the Subnet-Router anycast address is omitted. This can be changed by setting usable
to false.
subnets n subnet
is the sequence of subnets of subnet
with a prefix length of n
.
include Map.OrderedType with type t := t
A total ordering function over the keys. This is a two-argument function f
such that f e1 e2
is zero if the keys e1
and e2
are equal, f e1 e2
is strictly negative if e1
is smaller than e2
, and f e1 e2
is strictly positive if e1
is greater than e2
. Example: a suitable ordering function is the generic structural comparison function Stdlib.compare
.