Browse Source

[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 years ago
parent
commit
759dcf5a9b
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/net/udp/dhcp.c

+ 6
- 0
src/net/udp/dhcp.c View File

1471
 	ref_put ( &dhcp->refcnt );
1471
 	ref_put ( &dhcp->refcnt );
1472
 	return rc;
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…
Cancel
Save