From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C460DA04AD; Wed, 19 Jan 2022 15:21:05 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67A6041152; Wed, 19 Jan 2022 15:21:05 +0100 (CET) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mails.dpdk.org (Postfix) with ESMTP id 3BB7741147 for ; Wed, 19 Jan 2022 15:21:04 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 61084320280D; Wed, 19 Jan 2022 09:21:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 19 Jan 2022 09:21:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm3; bh= 0axi5CU9BLbBmV8pi0R2dZpSu+13z2hvFLhhugWg0sk=; b=Az9tUpbcaPUNBWTB RUigC14o6LaRmFRMiVrlhZ+C5dDT6QW9KT+cj2UvCddUbEHAFd+VX84tg3eZ5AO+ citmoHwhyK0DU+pPUT4da7JEpvdw4Mwm4TiRA1pvjzRN5L1z8TYW7cw5IeGbHckE lhahbk8jAOIng1tTntZphjPYGUwV88r2WLNGdxzcgT2Wm3VFf46+hQ2hicYOTdIn MyIp7szwTDpCUTi/lrTN4N3zmQWkAHjM8wJWinLndx09sG43izf8IqBJeXZjMedB N4IEaRcGYi8V/XbJGQF+Uj7ziP88jCTcH929WLtMAZfA57XPZq+/EIRJeKu3kJF5 vng96Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=0axi5CU9BLbBmV8pi0R2dZpSu+13z2hvFLhhugWg0 sk=; b=G3hYpuyz8MOvn+FxU0WhRyBB37RjTssnJ4xMZqzY/vrx+afvyu0AAMdrw vLXTvQGfhw9OwNnViU4PAHG0IKz4jBgoYJkVEkYcWPqjMCLosrV8Vez/oN+tOGPA A+QguXR7lbKUzteO0e7nYezKt6gp4sOMs8N6ELQ58aW2ZwwNVD8Ie80mMlfkcAvX jGx0kGZkBtfyqYak23NL5O+BFlTpKTXgA/al+oxgdqaLHy8Ho15moLpnqvBkwbQv u4AnpS8aWZOd8Ge3rhbIZ0LM9JmM/3O+yxw488kLI2EuEpUg+qqwN1+Q9mzxTSxL /sSOlRJtNIDsqJp1QoQ4dYcfDuogA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeigddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Jan 2022 09:20:59 -0500 (EST) From: Thomas Monjalon To: Ronan Randles Cc: dev@dpdk.org, harry.van.haaren@intel.com Subject: Re: [PATCH 01/12] net: add string to IPv4 parse function Date: Wed, 19 Jan 2022 15:20:57 +0100 Message-ID: <2848811.BaHzMo0RvP@thomas> In-Reply-To: <20211214141242.3383831-2-ronan.randles@intel.com> References: <20211214141242.3383831-1-ronan.randles@intel.com> <20211214141242.3383831-2-ronan.randles@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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?