summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-22 07:53:46 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-22 10:21:31 +0800
commitf66b0807cace1cfda192810861ba6309bf6fa9fe (patch)
treedacaedf37a5dc0fb4fd7dc1077a55dbee44fc82c /discover
parent2ad0e66f61e8f8488cff208f8bb7f5127ec9f813 (diff)
downloadpetitboot-f66b0807cace1cfda192810861ba6309bf6fa9fe.zip
petitboot-f66b0807cace1cfda192810861ba6309bf6fa9fe.tar.gz
discover: Use lowercase hex chars for MAC-address-based conf requests
The de-facto PXELINUX standard specifies lowercase characters for the MAC addresses, so change our reuqests to suit. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/user-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/user-event.c b/discover/user-event.c
index dc671d9..1e366ee 100644
--- a/discover/user-event.c
+++ b/discover/user-event.c
@@ -208,7 +208,7 @@ static char *parse_mac_addr(struct discover_context *ctx, const char *mac)
mac_addr_arr + 2, mac_addr_arr + 3, mac_addr_arr + 4,
mac_addr_arr + 5);
- mac_addr = talloc_asprintf(ctx, "01-%02X-%02X-%02X-%02X-%02X-%02X",
+ mac_addr = talloc_asprintf(ctx, "01-%02x-%02x-%02x-%02x-%02x-%02x",
mac_addr_arr[0], mac_addr_arr[1], mac_addr_arr[2],
mac_addr_arr[3], mac_addr_arr[4], mac_addr_arr[5]);
OpenPOWER on IntegriCloud