X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fpb-config%2Fpb-config.h;h=748b409ada3c04a5ff85602c55b33fc53291685a;hp=c377087414dbc30c788a6d4ac88fc475e7ba8961;hb=2b41985dde73e71daad90c36fa5d06c199da3ae1;hpb=d6166b471a9356355ed16747de3c0febd4b8cd3e;ds=sidebyside diff --git a/lib/pb-config/pb-config.h b/lib/pb-config/pb-config.h index c377087..748b409 100644 --- a/lib/pb-config/pb-config.h +++ b/lib/pb-config/pb-config.h @@ -6,7 +6,7 @@ #define HWADDR_SIZE 6 -struct network_config { +struct interface_config { uint8_t hwaddr[HWADDR_SIZE]; bool ignore; enum { @@ -24,10 +24,14 @@ struct network_config { }; }; +struct network_config { + struct interface_config **interfaces; + int n_interfaces; +}; + struct config { bool autoboot_enabled; - struct network_config **network_configs; - int n_network_configs; + struct network_config network; };