Explorar el Código

[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 hace 11 años
padre
commit
759dcf5a9b
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      src/net/udp/dhcp.c

+ 6
- 0
src/net/udp/dhcp.c Ver fichero

@@ -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
+};

Loading…
Cancelar
Guardar