mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 02:08:00 +00:00
env: net: Move eth_parse_enetaddr() to net.c/h
This function fits better with the network subsystem, so move it. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
b79cf1af0d
commit
36c8b143c0
4 changed files with 23 additions and 14 deletions
|
@ -875,4 +875,15 @@ int update_tftp(ulong addr, char *interface, char *devstring);
|
|||
|
||||
/**********************************************************************/
|
||||
|
||||
/**
|
||||
* eth_parse_enetaddr() - Parse a MAC address
|
||||
*
|
||||
* Convert a string MAC address
|
||||
*
|
||||
* @addr: MAC address in aa:bb:cc:dd:ee:ff format, where each part is a 2-digit
|
||||
* hex value
|
||||
* @enetaddr: Place to put MAC address (6 bytes)
|
||||
*/
|
||||
void eth_parse_enetaddr(const char *addr, uint8_t *enetaddr);
|
||||
|
||||
#endif /* __NET_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue