mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ifup: set serverip to provided value when doing dhcp
@ 2014-03-14 10:10 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2014-03-14 10:10 UTC (permalink / raw)
  To: barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 net/ifup.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/ifup.c b/net/ifup.c
index 3b89ce1..7b63136 100644
--- a/net/ifup.c
+++ b/net/ifup.c
@@ -95,6 +95,9 @@ int ifup(const char *name, unsigned flags)
 		ret = run_command("dhcp");
 		if (ret)
 			goto out;
+		ret = eth_set_param(dev, "serverip");
+		if (ret)
+			goto out;
 	} else if (!strcmp(ip, "static")) {
 		for (i = 0; i < ARRAY_SIZE(vars); i++) {
 			ret = eth_set_param(dev, vars[i]);
-- 
1.9.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-14 10:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-14 10:10 [PATCH] ifup: set serverip to provided value when doing dhcp Sascha Hauer

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