diff options
| author | Shao Miller | 2009-11-09 14:57:23 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2009-12-14 18:54:53 +0100 |
| commit | 177389fb73d3a7c883c76cbefd72ea598eb0a530 (patch) | |
| tree | 1167f4989dc0db458dadc6d73814caa20bb85a0a /src/net/udp/dhcp.c | |
| parent | [eepro100] Add missing FILE_LICENCE() to eepro100.h (diff) | |
| download | ipxe-177389fb73d3a7c883c76cbefd72ea598eb0a530.tar.gz ipxe-177389fb73d3a7c883c76cbefd72ea598eb0a530.tar.xz ipxe-177389fb73d3a7c883c76cbefd72ea598eb0a530.zip | |
[settings] Add Bus ID setting
Users can find the bus type and PCI IDs for a network interface with:
netX/busid
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Diffstat (limited to 'src/net/udp/dhcp.c')
| -rw-r--r-- | src/net/udp/dhcp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 2483ec291..17e543acb 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -932,7 +932,6 @@ int dhcp_create_packet ( struct dhcp_packet *dhcppkt, int dhcp_create_request ( struct dhcp_packet *dhcppkt, struct net_device *netdev, unsigned int msgtype, struct in_addr ciaddr, void *data, size_t max_len ) { - struct device_description *desc = &netdev->dev->desc; struct dhcp_netdev_desc dhcp_desc; struct dhcp_client_id client_id; struct dhcp_client_uuid client_uuid; @@ -966,9 +965,8 @@ int dhcp_create_request ( struct dhcp_packet *dhcppkt, } /* Add options to identify the network device */ - dhcp_desc.type = desc->bus_type; - dhcp_desc.vendor = htons ( desc->vendor ); - dhcp_desc.device = htons ( desc->device ); + fetch_setting ( &netdev->settings.settings, &busid_setting, &dhcp_desc, + sizeof ( dhcp_desc ) ); if ( ( rc = dhcppkt_store ( dhcppkt, DHCP_EB_BUS_ID, &dhcp_desc, sizeof ( dhcp_desc ) ) ) != 0 ) { DBG ( "DHCP could not set bus ID option: %s\n", |
