[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 2/2] Propagate MACADDR from loaderData to iface (#595388)



Ack, thanks.

On 07/20/2010 11:07 PM, David Cantrell wrote:
> Make sure the MACADDR value gets propagated to the iface struct so that
> writeNetInfo() will succeed on s390 hosts.
> ---
>  loader/net.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/loader/net.c b/loader/net.c
> index 0a15224..eb324e0 100644
> --- a/loader/net.c
> +++ b/loader/net.c
> @@ -433,6 +433,10 @@ void setupIfaceStruct(iface_t * iface, struct loaderData_s * loaderData) {
> 
>      iface->dhcptimeout = loaderData->dhcpTimeout;
> 
> +    if (loaderData->macaddr) {
> +        iface->macaddr = strdup(loaderData->macaddr);
> +    }
> +
>      return;
>  }
> 

Steffen

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]