]> git.ozlabs.org Git - petitboot/commit - test/parser/Makefile.am
discover/pxe: Format IPAPPEND mac addresses correctly
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Wed, 3 Dec 2014 04:08:23 +0000 (15:08 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 3 Dec 2014 04:12:47 +0000 (12:12 +0800)
commit9c33c54f7b431074a7d0daddce34140044aaadf6
treef726dca93146b8218f4c5711a49b4eb1fe49c12a
parentba1633025d93d7b41bda9bd32fa1d2337c7c4365
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>
discover/device-handler.c
discover/device-handler.h
discover/network.c
discover/network.h
discover/pxe-parser.c
test/parser/Makefile.am
test/parser/network.c [new file with mode: 0644]
test/parser/parser-test.h
test/parser/test-pxe-ipappend.c
test/parser/utils.c