diff options
author | Simon Glass | 2019-08-01 09:46:54 -0600 |
---|---|---|
committer | Tom Rini | 2019-08-11 16:43:41 -0400 |
commit | 36c8b143c0c113232bcf47d6499a3982fdfaf98a (patch) | |
tree | bece8d64b485797ecfbcf1b582da2936d73c6065 /include | |
parent | b79cf1af0d1cf175c4414ea1b8465747431d77cf (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/environment.h | 2 | ||||
-rw-r--r-- | include/net.h | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/include/environment.h b/include/environment.h index 77915f459e8..0de9d3fc600 100644 --- a/include/environment.h +++ b/include/environment.h @@ -325,8 +325,6 @@ int env_erase(void); */ void env_fix_drivers(void); -void eth_parse_enetaddr(const char *addr, uint8_t *enetaddr); - #endif /* DO_DEPS_ONLY */ #endif /* _ENVIRONMENT_H_ */ diff --git a/include/net.h b/include/net.h index 0262175c816..a54d5eeac5f 100644 --- a/include/net.h +++ b/include/net.h @@ -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__ */ |