[PATCH 7/9] net: ip_route_get: resolv hostnames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When global.net.server is a hostname instead of an IP address we have to
resolv it.

Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
---
 commands/ip-route-get.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/ip-route-get.c b/commands/ip-route-get.c
index b3d4ecce82..d3c15b7798 100644
--- a/commands/ip-route-get.c
+++ b/commands/ip-route-get.c
@@ -40,7 +40,7 @@ static int do_ip_route_get(int argc, char *argv[])
 	if (argc == optind + 2)
 		variable = argv[optind + 1];
 
-	ret = string_to_ip(argv[optind], &ip);
+	ret = resolv(argv[optind], &ip);
 	if (ret) {
 		printf("Cannot convert \"%s\" into a IP address: %s\n",
 		       argv[optind], strerror(-ret));
-- 
2.19.1


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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux