[PATCH 01/12] net: add string to IPv4 parse function
Thomas Monjalon
thomas at monjalon.net
Wed Jan 19 15:20:57 CET 2022
14/12/2021 15:12, Ronan Randles:
> --- a/lib/net/rte_ip.h
> +++ b/lib/net/rte_ip.h
> +/**
> + * IP address parser.
> + *
> + * @param src_ip
> + * The IP address to be parsed.
> + * @param output_addr
> + * The array in which the parsed digits will be saved.
> + *
> + * @retval 0
> + * Success.
> + * @retval -1
> + * Failure due to invalid input arguments.
> + */
> +
> +__rte_experimental
> +int32_t
> +rte_ip_parse_addr(const char *src_ip, uint32_t *output_addr);
Is it similar to inet_aton() ?
Does it support IPv6? If not, why not adding a number 4 in the name?
More information about the dev
mailing list