9
0
Fork 0
barebox/net
Sascha Hauer 66691793b0 net: dhcp: Fix tftp servername handling
When the dhcp code discovered the tftp-server-name option it immediately
tries to resolve the name. This can't succeed since the we are somewhere
in the dhcp processing and the nameserver may not even be known.

Fix this by resolving the name when dhcp is completed. While at it, do
this in a way that net_set_serverip is only called when resolv() returns
something useful. Otherwise we may end up overwriting a previously
configured serverip which came from the bootp bp_siaddr field.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-05-14 11:51:24 +02:00
..
Kconfig introduce console none support 2013-01-23 20:34:16 +01:00
Makefile net: remove old tftp support 2012-09-28 16:24:02 +02:00
dhcp.c net: dhcp: Fix tftp servername handling 2013-05-14 11:51:24 +02:00
dns.c dns: fix recursive loop 2012-05-16 08:50:33 +02:00
eth.c net: store ethernet device parameters in device 2013-04-11 11:48:34 +02:00
net.c net: store ethernet device parameters in device 2013-04-11 11:48:34 +02:00
netconsole.c netconsole: use dev_add_param_* helpers 2013-04-11 11:48:34 +02:00
nfs.c commands: remove struct command pointer from commands 2012-02-27 20:28:07 +01:00
nfs.h pass filename to nfs and tftp start functions 2009-10-19 10:18:51 +02:00
ping.c net: ping: do not retry endlessly 2012-04-05 08:56:03 +02:00
rarp.h Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00