From: Michael Brown Date: Thu, 31 Oct 2013 15:44:39 +0000 (+0000) Subject: [dhcp] Add DHCP network device configurator X-Git-Tag: v1.20.1~1377 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759dcf5a9b0cd8db08838becebb5586a82fdf74d;p=thirdparty%2Fipxe.git [dhcp] Add DHCP network device configurator Provide an interface to DHCP via the generic network device configurator mechanism. Signed-off-by: Michael Brown --- diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index be03096b6..60d65c472 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -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, +};