mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
common/env_flags.c: Add function to validate a MAC address
The code that checks if a string has the format of a MAC address has been moved to a separate function called eth_validate_ethaddr_str(). This has been done to allow other components (such as vsc9953 driver) to validate a MAC address. Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
committed by
York Sun
parent
68c929da6b
commit
0118e83ba4
@@ -109,6 +109,13 @@ enum env_flags_varaccess env_flags_parse_varaccess(const char *flags);
|
||||
*/
|
||||
enum env_flags_varaccess env_flags_parse_varaccess_from_binflags(int binflags);
|
||||
|
||||
#ifdef CONFIG_CMD_NET
|
||||
/*
|
||||
* Check if a string has the format of an Ethernet MAC address
|
||||
*/
|
||||
int eth_validate_ethaddr_str(const char *addr);
|
||||
#endif
|
||||
|
||||
#ifdef USE_HOSTCC
|
||||
/*
|
||||
* Look up the type of a variable directly from the .flags var.
|
||||
|
Reference in New Issue
Block a user