diff options
author | Loïc Minier <loic.minier@linaro.org> | 2011-08-17 22:57:11 +0200 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2011-08-18 14:42:22 -0600 |
commit | 8ef809b5d1320b0425b1a4cbaf8451a3d6abe89c (patch) | |
tree | 2b0a1011929e03641393959175802f08563fb7b2 | |
parent | 8ed2c44f563f03ecfe0999dd475e51a574cd93e0 (diff) |
pxecfg: Lower case MAC address to match pxelinux
Cc: patches@linaro.org
Signed-off-by: Loïc Minier <loic.minier@linaro.org>
-rw-r--r-- | common/cmd_pxecfg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/cmd_pxecfg.c b/common/cmd_pxecfg.c index 84b0d2507..2f8714c4c 100644 --- a/common/cmd_pxecfg.c +++ b/common/cmd_pxecfg.c @@ -65,9 +65,12 @@ static void format_mac_pxecfg(char **outbuf) * but in practice always 1 for Ethernet */ sprintf(*outbuf, "01-%s", ethaddr); + /* convert colons to dashes and lower case the MAC address */ for (p = *outbuf + 3; *p; p++) { if (*p == ':') *p = '-'; + else + *p = tolower(*p); } } |