10 struct interface_config net1 = {
11 .hwaddr = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55 },
12 .method = CONFIG_METHOD_DHCP,
15 struct interface_config net2 = {
16 .hwaddr = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x56 },
17 .method = CONFIG_METHOD_STATIC,
19 .address = "192.168.0.2/24",
20 .gateway = "192.168.0.1",
24 struct interface_config *interface_configs[] = { &net1, &net2 };
26 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
28 struct config test_config = {
29 .autoboot_enabled = true,
31 .interfaces = interface_configs,
32 .n_interfaces = ARRAY_SIZE(interface_configs),
37 struct config_storage storage;
42 static int load(struct config_storage *st __attribute__((unused)),
43 struct config *config)
45 memcpy(config, &test_config, sizeof(test_config));
49 static struct test_storage st = {
55 struct config_storage *create_test_storage(void *ctx __attribute__((unused)))