Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix: Use DHCP address when DHCP is enabled in default config

  • Loading branch information...
commit 33a127d40fb7662de2192390f9ee740d89fde8bc 1 parent f49776c
Sébastien Bourdeauducq sbourdeauducq authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sysconfig.c
4 src/sysconfig.c
View
@@ -187,12 +187,12 @@ void sysconfig_load()
rtems_bsdnet_config.bootp = my_dhcp;
else
rtems_bsdnet_config.bootp = NULL;
- if(sysconfig.ip) {
+ if(sysconfig.ip && !sysconfig.dhcp_enable) {
format_ip(sysconfig.ip, ip_fmt);
netdriver_config.ip_address = ip_fmt;
} else
netdriver_config.ip_address = NULL;
- if(sysconfig.netmask) {
+ if(sysconfig.netmask && !sysconfig.dhcp_enable) {
format_ip(sysconfig.netmask, netmask_fmt);
netdriver_config.ip_netmask = netmask_fmt;
} else
Please sign in to comment.
Something went wrong with that request. Please try again.