[dpdk-dev] [PATCH v2] net: be more restrictive in accepted ether string formats

Olivier Matz olivier.matz at 6wind.com
Fri Jul 19 15:42:20 CEST 2019


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 <stephen at networkplumber.org>

Reviewed-by: Olivier Matz <olivier.matz at 6wind.com>


More information about the dev mailing list