diff options
| author | Michael Brown | 2008-03-22 01:24:50 +0100 |
|---|---|---|
| committer | Michael Brown | 2008-03-22 01:31:08 +0100 |
| commit | e5cea13e51f5226987048275499314c6f15d526f (patch) | |
| tree | d346fa495c66a03eb2a5c40ef2eab3d92326d3c8 /src/net | |
| parent | [Settings] DHCP is now working using the new settings API. (diff) | |
| download | ipxe-e5cea13e51f5226987048275499314c6f15d526f.tar.gz ipxe-e5cea13e51f5226987048275499314c6f15d526f.tar.xz ipxe-e5cea13e51f5226987048275499314c6f15d526f.zip | |
[Settings] Implement simple_settings backed with extensible DHCP options
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/netdev_settings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/netdev_settings.c b/src/net/netdev_settings.c index 9baad888b..c8e630a9c 100644 --- a/src/net/netdev_settings.c +++ b/src/net/netdev_settings.c @@ -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: |
