Bläddra i källkod

[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>
tags/v1.20.1
Michael Brown 11 år sedan
förälder
incheckning
759dcf5a9b
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6
    0
      src/net/udp/dhcp.c

+ 6
- 0
src/net/udp/dhcp.c Visa fil

@@ -1471,3 +1471,9 @@ int start_pxebs ( struct interface *job, struct net_device *netdev,
1471 1471
 	ref_put ( &dhcp->refcnt );
1472 1472
 	return rc;
1473 1473
 }
1474
+
1475
+/** DHCP network device configurator */
1476
+struct net_device_configurator dhcp_configurator __net_device_configurator = {
1477
+	.name = "dhcp",
1478
+	.start = start_dhcp,
1479
+};

Laddar…
Avbryt
Spara