Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Convert to and from Cstructs and MAC address.
of_cstruct c
parses the 6 octets of c
into a MAC address.
of_cstruct_exn
parses the 6 octets of c
into a MAC address. Raises Macaddr.Parse_failure
on error.
to_cstruct mac
is a cstruct of length 4 encoding ipv4
. The cstruct is allocated using allocator
. If allocator
is not provided, Cstruct.create
is used.