diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2014-12-03 15:08:23 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-12-03 12:12:47 +0800 |
commit | 9c33c54f7b431074a7d0daddce34140044aaadf6 (patch) | |
tree | f726dca93146b8218f4c5711a49b4eb1fe49c12a /test/parser/parser-test.h | |
parent | ba1633025d93d7b41bda9bd32fa1d2337c7c4365 (diff) | |
download | talos-petitboot-9c33c54f7b431074a7d0daddce34140044aaadf6.tar.gz talos-petitboot-9c33c54f7b431074a7d0daddce34140044aaadf6.zip |
discover/pxe: Format IPAPPEND mac addresses correctly
The SYSAPPEND/IPAPPEND option 2 in PXE configs requires
the MAC address of the booting interface to be appended
to the boot options. Previously we formatted this as
"BOOTIF=01:02:03:04:05:06",
but syslinux/pxelinux implementation use this format:
"BOOTIF=01-01-02-03-04-05-06",
where the leading '01' represents the hardware type.
The relevant part of the pxelinux doc is at:
http://www.syslinux.org/wiki/index.php/SYSLINUX#SYSAPPEND_bitmask
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/parser-test.h')
-rw-r--r-- | test/parser/parser-test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parser/parser-test.h b/test/parser/parser-test.h index c0339b8..21b5b9c 100644 --- a/test/parser/parser-test.h +++ b/test/parser/parser-test.h @@ -40,6 +40,7 @@ void test_add_dir(struct parser_test *test, struct discover_device *dev, void test_set_event_source(struct parser_test *test); void test_set_event_param(struct event *event, const char *name, const char *value); +void test_set_event_device(struct event *event, const char *dev); #define test_add_file_string(test, dev, filename, str) \ test_add_file_data(test, dev, filename, str, sizeof(str) - 1) |