From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2EFF4A0471 for ; Fri, 19 Jul 2019 15:42:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0ED29322C; Fri, 19 Jul 2019 15:42:24 +0200 (CEST) Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 8CA401C01 for ; Fri, 19 Jul 2019 15:42:23 +0200 (CEST) Received: from lfbn-lil-1-176-160.w90-45.abo.wanadoo.fr ([90.45.26.160] helo=droids-corp.org) by mail.droids-corp.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hoTCY-0006sn-D2; Fri, 19 Jul 2019 15:45:35 +0200 Received: by droids-corp.org (sSMTP sendmail emulation); Fri, 19 Jul 2019 15:42:20 +0200 Date: Fri, 19 Jul 2019 15:42:20 +0200 From: Olivier Matz To: Stephen Hemminger Cc: dev@dpdk.org Message-ID: <20190719134220.cub63h245m5yrehx@platinum> References: <20190717184945.4025-1-stephen@networkplumber.org> <20190718183544.22988-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190718183544.22988-1-stephen@networkplumber.org> User-Agent: NeoMutt/20180716 Subject: Re: [dpdk-dev] [PATCH v2] net: be more restrictive in accepted ether string formats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jul 18, 2019 at 11:35:44AM -0700, Stephen Hemminger wrote: > The current ether_unformat_addr code was based off of > BSD ether_aton. That version changed what was allowed > by the cmdline ether address parser. > For example, it allows dropping leading zeros. > > Change the code to be more restrictive and only allow the fully > expanded standard formats. > > Bugzilla ID: 324 > Fixes: 596d31092d32 ("net: add function to convert string to ethernet address") > Signed-off-by: Stephen Hemminger Reviewed-by: Olivier Matz