[Settings] Implement simple_settings backed with extensible DHCP options

This commit is contained in:
Michael Brown
2008-03-22 00:24:50 +00:00
parent a462c96ffc
commit e5cea13e51
4 changed files with 72 additions and 26 deletions

View File

@@ -39,8 +39,8 @@
*/
static int netdev_store ( struct settings *settings, unsigned int tag,
const void *data, size_t len ) {
struct net_device *netdev =
container_of ( settings, struct net_device, settings );
struct net_device *netdev = container_of ( settings, struct net_device,
settings.settings );
switch ( tag ) {
case DHCP_EB_MAC:
@@ -64,8 +64,8 @@ static int netdev_store ( struct settings *settings, unsigned int tag,
*/
static int netdev_fetch ( struct settings *settings, unsigned int tag,
void *data, size_t len ) {
struct net_device *netdev =
container_of ( settings, struct net_device, settings );
struct net_device *netdev = container_of ( settings, struct net_device,
settings.settings );
switch ( tag ) {
case DHCP_EB_MAC: