[En-Nut-Discussion] NutNetSaveConfig overwriting confboot

Stefan Profanter enut at s.profanter.me
Mon Feb 28 22:27:53 CET 2011


Hi!

When I call NutNetSaveConfig to change the IP within NutOS it overwrites the
settings of confboot (Settings from bootmon).

 

Here is my code:

 

Value contains a string like "192.168.1.1"

------------------

confnet.cdn_cip_addr = inet_addr(value);

confnet.cdn_ip_mask = inet_addr(value);

confnet.cdn_gateway = inet_addr(value);

 

if (NutNetSaveConfig()==0)

      printf("Successfully saved");

else

      printf("Error saving");

-------------------

The function NutNetSaveConfig returns 0, so no error occurs.

 

When I now restart the ethernut, TFTP-IP is 0.0.0.0 and the bin filename is
empty.

 

What is wrong here?

 

Thanks-

Stefan

 




More information about the En-Nut-Discussion mailing list