[ipxe-devel] Patch: Add ${mac/hexnone} settings type

Andrew Bobulsky rulerof at gmail.com
Tue Sep 25 15:01:58 UTC 2012

On Sep 25, 2012, at 10:16 AM, Jeppe Toustrup <ipxe at tenzer.dk> wrote:

> Hi
> I am working on using iPXE for a PXE boot setup, where we would like
> to generate iPXE configurations dynamically based on the MAC address
> of the machine which is booting. Since our existing system uses MAC
> addresses without delimiters, it would be easier for us if iPXE had
> that in a parameter, but currently it only has the option of the MAC
> address with either a colon (':') or hyphen ('-') as delimiter. I
> could of course just strip one of those in our systems, but since
> there already are two options, I thought it couldn't be that hard to
> add a third one, which may be handy for other people as well. So I
> have made a patch which adds ${mac/hexnone} which contains the MAC
> address without any delimiters:
> http://files.tenzer.dk/misc/hexnone.patch
> I have basically searched the source code for 'hexhyp' and duplicated
> the work done to implement that, only without a delimiter.
> Is this something that could be added to the iPXE source tree?
> Do you possibly want another name for the setting type than 'hexnone'?
> --
> Venlig hilsen / Kind regards
> Jeppe Toustrup
> _______________________________________________
> ipxe-devel mailing list
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel

Hello Jeppe,

A fine idea for sure, I'm sure Michael will review your patch; code
size is always the biggest consideration.

The only suggestion I have for the name would be "hexraw," as that may
be a more accurate description.... I think ;)

Andrew Bobulsky

More information about the ipxe-devel mailing list