Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
{
const struct config *config;
struct boot_priority *prio;
{
const struct config *config;
struct boot_priority *prio;
uint8_t *hwaddr)
{
const struct config *config;
uint8_t *hwaddr)
{
const struct config *config;
config = config_get();
if (!config)
config = config_get();
if (!config)
static void network_init_dns(struct network *network)
{
const struct config *config;
static void network_init_dns(struct network *network)
{
const struct config *config;
+ unsigned int i;
+ int rc, len;
bool modified;
char *buf;
bool modified;
char *buf;
void dump_config(struct config *config);
void dump_config(struct config *config)
{
void dump_config(struct config *config);
void dump_config(struct config *config)
{
pb_log("configuration:\n");
pb_log("configuration:\n");
static void update_network_config(struct powerpc_nvram_storage *nv,
struct config *config)
{
static void update_network_config(struct powerpc_nvram_storage *nv,
struct config *config)
{
val = talloc_strdup(nv, "");
val = talloc_strdup(nv, "");
struct network_config {
struct interface_config **interfaces;
struct network_config {
struct interface_config **interfaces;
+ unsigned int n_interfaces;
const char **dns_servers;
const char **dns_servers;
+ unsigned int n_dns_servers;
};
struct boot_priority {
};
struct boot_priority {
struct config {
bool autoboot_enabled;
struct config {
bool autoboot_enabled;
- int autoboot_timeout_sec;
+ unsigned int autoboot_timeout_sec;
struct network_config network;
struct boot_priority *boot_priorities;
struct network_config network;
struct boot_priority *boot_priorities;
+ unsigned int n_boot_priorities;