From 759dcf5a9b0cd8db08838becebb5586a82fdf74d Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 31 Oct 2013 15:44:39 +0000 Subject: [PATCH] [dhcp] Add DHCP network device configurator Provide an interface to DHCP via the generic network device configurator mechanism. Signed-off-by: Michael Brown --- src/net/udp/dhcp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index be03096b..60d65c47 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, +};