[ipxe-devel] get mac from ipxe in different format (no delimiter at all)

Torgeir W tor.wulf at gmail.com
Sun May 5 12:15:51 UTC 2013


I only needed to get the MAC with no delimiter, never set it (looked at it, and it is way too complicated for me).

So I'll leave that up to the pros. But then again, I don't know if this is useful for anyone else..

Torgeir


Den 5. mai 2013 kl. 13:19 skrev Michael Brown <mbrown at fensystems.co.uk>:

> On 04/05/13 20:15, Torgeir W wrote:
>> +/**
>> + * Format hex string setting value (using no delimiter)
>> + *
>> + * @v raw Raw setting value
>> + * @v raw_len Length of raw setting value
>> + * @v buf Buffer to contain formatted value
>> + * @v len Length of buffer
>> + * @ret len Length of formatted value, or negative error
>> + */
>> +static int format_hex_no_delimiter_setting ( const void *raw, size_t
>> raw_len,
>> + char *buf, size_t len ) {
>> + return format_hex_setting ( raw, raw_len, buf, len, "" );
>> +}
> 
> That's the easy half.  You also need to make this work:
> 
>  set foo:hexnd 1234abcd
> 
> Michael



More information about the ipxe-devel mailing list