]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[dhcp] Add DHCP network device configurator
authorMichael Brown <mcb30@ipxe.org>
Thu, 31 Oct 2013 15:44:39 +0000 (15:44 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 5 Nov 2013 17:30:20 +0000 (17:30 +0000)
Provide an interface to DHCP via the generic network device
configurator mechanism.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/udp/dhcp.c

index be03096b6fae3fb91e84172d6664f533ecf44ee4..60d65c4729b1b731c95399597751152050dc0e0c 100644 (file)
@@ -1471,3 +1471,9 @@ int start_pxebs ( struct interface *job, struct net_device *netdev,
        ref_put ( &dhcp->refcnt );
        return rc;
 }
+
+/** DHCP network device configurator */
+struct net_device_configurator dhcp_configurator __net_device_configurator = {
+       .name = "dhcp",
+       .start = start_dhcp,
+};