mirror of https://github.com/ipxe/ipxe.git
[dhcp] Add DHCP network device configurator
Provide an interface to DHCP via the generic network device configurator mechanism. Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/17/head
parent
f2bc138391
commit
759dcf5a9b
|
@ -1471,3 +1471,9 @@ int start_pxebs ( struct interface *job, struct net_device *netdev,
|
||||||
ref_put ( &dhcp->refcnt );
|
ref_put ( &dhcp->refcnt );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** DHCP network device configurator */
|
||||||
|
struct net_device_configurator dhcp_configurator __net_device_configurator = {
|
||||||
|
.name = "dhcp",
|
||||||
|
.start = start_dhcp,
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue