[En-Nut-Discussion] CONFNET & DNS

Paulo Silva psilva at opensoftware-br.com
Fri Aug 10 00:55:44 CEST 2007


I agree with you, would be good this change.
In my application I create a structure called appContents, that I put primary and secondary dns among others stuffs, so I mantain compatibility with ethernut no changing CONFNET only to me. 

cheers

Paulo

  ----- Original Message ----- 
  From: Dusan Ferbas 
  To: en-nut-discussion at egnite.de 
  Sent: Thursday, August 09, 2007 7:00 PM
  Subject: [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


More information about the En-Nut-Discussion mailing list