Ipaddr.V4SourceA collection of functions for IPv4 addresses.
Type of the internet protocol v4 address of a host
Converts the low bytes of four int values into an abstract V4.t.
of_string_exn ipv4_string is the address represented by ipv4_string. Raises Parse_error if ipv4_string is not a valid representation of an IPv4 address.
Same as of_string_exn but returns an option 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 ipv4 is the dotted decimal string representation of ipv4, i.e. XXX.XX.X.XXX.
to_buffer buf ipv4 writes the string representation of ipv4 into the buffer buf.
pp f ipv4 outputs a human-readable representation of ipv4 to the formatter f.
pp_hum f ipv4 outputs a human-readable representation of ipv4 to the formatter f.
of_bytes_exn ipv4_octets is the address represented by ipv4_octets. Raises Parse_error if ipv4_octets is not a valid representation of an IPv4 address.
Same as of_bytes_exn but returns an option type instead of raising an exception.
Same as of_bytes_exn but take an extra paramenter, the offset into the bytes for reading.
to_bytes_raw ipv4 bytes offset writes the 4 byte encoding of ipv4 into bytes at offset offset.
of_int16 ipv4_packed is the address represented by ipv4_packed.
multicast_to_mac ipv4 is the MAC address corresponding to the multicast address ipv4. Described by RFC 1112.
to_domain_name ipv4 is the domain name label list for reverse lookups of ipv4. This includes the .in-addr.arpa. suffix.
is_global ipv4 is a predicate indicating whether ipv4 globally addresses a node.
is_multicast ipv4 is a predicate indicating whether ipv4 is a multicast address.
is_private ipv4 is a predicate indicating whether ipv4 privately addresses a node.
include Map.OrderedType with type t := tA 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.