Ipaddr_cstruct.V4SourceIpv4 address conversions
of_cstruct c parses the first 4 octets of c into an IPv4 address.
of_cstruct_exn parses the first 4 octets of c into an IPv4 address. Raises Ipaddr.Parse_failure on error.
to_cstruct ipv4 is a cstruct of length 4 encoding ipv4. The cstruct is allocated using allocator. If allocator is not provided, Cstruct.create is used.
write_cstruct_exn ipv4 cs writes 4 bytes into cs representing the ipv4 address octets. Raises Ipaddr.Parse_error if cs is not at least 4 bytes long.