assert_return(client, -EINVAL);
assert_return(client->state == DHCP_STATE_INIT, -EBUSY);
+ log_dhcp_client(client, "set MAC address to "
+ "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx",
+ addr->ether_addr_octet[0],
+ addr->ether_addr_octet[1],
+ addr->ether_addr_octet[2],
+ addr->ether_addr_octet[3],
+ addr->ether_addr_octet[4],
+ addr->ether_addr_octet[5]);
+
memcpy(&client->mac_addr, addr, ETH_ALEN);
return 0;
if (r != DHCP_OFFER)
return -ENOMSG;
+ lease->next_server = offer->siaddr;
+
lease->address = offer->yiaddr;
if (lease->address == INADDR_ANY ||
if (r != DHCP_ACK)
return -ENOMSG;
+ lease->next_server = ack->siaddr;
+
lease->address = ack->yiaddr;
if (lease->address == INADDR_ANY ||