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

Michael Brown mbrown at fensystems.co.uk
Sun May 5 11:19:57 UTC 2013


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