From 456eab7dc8cbb69e238e6095e298787b1c1d2058 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 30 Sep 2014 11:26:50 +0200 Subject: pppd: Import change from NetBSD This avoids the use of gethostbyname() in case the "noipdefault" option is given. The gethostbyname() uses DNS by default. --- cpukit/pppd/ipcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/pppd/ipcp.c') diff --git a/cpukit/pppd/ipcp.c b/cpukit/pppd/ipcp.c index ae8f15ba7c..fd23dddf9e 100644 --- a/cpukit/pppd/ipcp.c +++ b/cpukit/pppd/ipcp.c @@ -1294,7 +1294,7 @@ ip_check_options(void) * Default our local IP address based on our hostname. * If local IP address already given, don't bother. */ - if (wo->ouraddr == 0) { + if (wo->ouraddr == 0 && !disable_defaultip) { /* * Look up our hostname (possibly with domain name appended) * and take the first IP address as our local IP address. -- cgit v1.2.3