numam-dpdk/lib/librte_net
Stephen Hemminger d036e6a149 net: be more restrictive with ethernet address format
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: 596d31092d ("net: add function to convert string to ethernet address")

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
2019-07-23 14:31:35 +02:00
..
Makefile net: deinline non-critical ethernet functions 2019-07-08 21:26:52 +02:00
meson.build net: deinline non-critical ethernet functions 2019-07-08 21:26:52 +02:00
net_crc_neon.h lib: use SPDX tag for Cavium copyright files 2018-01-09 16:19:01 +01:00
net_crc_sse.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
rte_arp.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_arp.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
rte_esp.h net: add rte prefix to ESP structure 2019-05-24 13:34:45 +02:00
rte_ether.c net: be more restrictive with ethernet address format 2019-07-23 14:31:35 +02:00
rte_ether.h net: be more restrictive with ethernet address format 2019-07-23 14:31:35 +02:00
rte_gre.h net: add rte prefix to GRE structure 2019-05-24 13:34:45 +02:00
rte_icmp.h net: add rte prefix to ICMP defines 2019-05-24 13:34:46 +02:00
rte_ip.h ipsec: support header construction 2019-07-05 15:28:14 +02:00
rte_mpls.h net: add MPLS header structure 2018-10-26 22:14:06 +02:00
rte_net_crc.c lib: fix shifting 32-bit signed variable 31 times 2018-11-06 01:14:05 +01:00
rte_net_crc.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_net_version.map net: add function to convert string to ethernet address 2019-07-08 21:26:52 +02:00
rte_net.c remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
rte_net.h net: fix how L4 checksum choice is tested 2019-06-28 20:32:18 +02:00
rte_sctp.h net: add rte prefix to SCTP structure 2019-05-24 13:34:46 +02:00
rte_tcp.h net: move TCP flags from ethdev header 2019-07-03 12:57:30 +02:00
rte_udp.h net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00