瀏覽代碼

[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 年之前
父節點
當前提交
759dcf5a9b
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/net/udp/dhcp.c

+ 6
- 0
src/net/udp/dhcp.c 查看文件

@@ -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…
取消
儲存