public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Setting ipaddr via setenv() - H_INTERACTIVE vs H_PROGRAMMATIC
@ 2016-03-01 10:35 Stefan Roese
  2016-03-01 19:40 ` Joe Hershberger
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Roese @ 2016-03-01 10:35 UTC (permalink / raw)
  To: u-boot

Hi Joe,

I'm currently stumbling over a problem in some board specific code
(not in mainline yet), that sets the "ipaddr" env variable via
setenv(). But as I now noticed, the callback on_ipaddr() doesn't
set net_ip to this new value. As flags has H_PROGRAMMATIC set and
op_ipaddr() skips setting this value in this case.

I fail to see why we need this check in on_ipaddr(). Could you
please explain why this is needed? Why would someone use setenv()
for the "ipaddr" and not want to also update the net_ip value.
This results in the "ipaddr" value being updated but net_ip
still being configured to the old value.

Or if this is really needed, what is the correct way to update
the ipaddr (env variable and net_ip value) from the U-Boot code?

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-03  1:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-01 10:35 [U-Boot] Setting ipaddr via setenv() - H_INTERACTIVE vs H_PROGRAMMATIC Stefan Roese
2016-03-01 19:40 ` Joe Hershberger
2016-03-02  6:21   ` Stefan Roese
2016-03-02  6:46     ` Joe Hershberger
2016-03-02  7:01       ` Stefan Roese
2016-03-03  1:58         ` Joe Hershberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox