[DHCP] Add "dhcp-server" setting to help end-user diagnostics
authorMichael Brown <mcb30@etherboot.org>
Thu, 5 Jun 2008 14:43:34 +0000 (15:43 +0100)
committerMichael Brown <mcb30@etherboot.org>
Thu, 5 Jun 2008 14:43:34 +0000 (15:43 +0100)
src/net/udp/dhcp.c

index ecb7378..0ce3c19 100644 (file)
@@ -260,6 +260,14 @@ static struct dhcp_settings * dhcpset_create ( const struct dhcphdr *dhcphdr,
        return dhcpset;
 }
 
+/** DHCP server address setting */
+struct setting dhcp_server_setting __setting = {
+       .name = "dhcp-server",
+       .description = "DHCP server address",
+       .tag = DHCP_SERVER_IDENTIFIER,
+       .type = &setting_type_ipv4,
+};
+
 /****************************************************************************
  *
  * DHCP session