[En-Nut-Discussion] CONFNET & DNS

Dusan Ferbas dferbas at etech.cz
Fri Aug 10 00:00:09 CEST 2007


Hi developers,

when DHCP fails, it uses IP address, mask & gw from CONFNET. It does 
not use DNS settings. It is well documented in pro/dhcpc.c:NutDhcpIfConfig().

There is a plenty of currently unused space in EEPROM (Nut/OS 
reserved area). I suggest to extend CONFNET structure by 8 bytes with

     u_long cdn_pdns;    /*!< \brief Primary DNS address. */
     u_long cdn_sdns;    /*!< \brief Secondary DNS address. */

Also this change invokes an idea to pass whole CONFNET instead of 
passing individual arguments - NutNetIfConfig2(), NutNetIfSetup()

Then NutDhcpIfConfig() wil be able to configure DNS servers with 
NutDnsConfig2() also in case dhcp fails.

What do you guys think ?


Dusan  




More information about the En-Nut-Discussion mailing list