[En-Nut-Discussion] CONFNET & DNS

Ernst Stippl ernst at stippl.org
Sat Aug 11 09:09:29 CEST 2007


Hi Dusan!

good idea!

regards
ernst  

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Dusan Ferbas
Gesendet: Freitag, 10. August 2007 00:00
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] CONFNET & DNS

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  

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.11.11/944 - Release Date: 09.08.2007
14:44





More information about the En-Nut-Discussion mailing list