summaryrefslogtreecommitdiffstats
path: root/cpukit/pppd/ipcp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-30 11:26:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-30 14:06:09 +0200
commit456eab7dc8cbb69e238e6095e298787b1c1d2058 (patch)
tree761d707f8b2668d98eafc87c367acc31efa7dd10 /cpukit/pppd/ipcp.c
parentpppd: Fix warnings (diff)
downloadrtems-456eab7dc8cbb69e238e6095e298787b1c1d2058.tar.bz2
pppd: Import change from NetBSD
This avoids the use of gethostbyname() in case the "noipdefault" option is given. The gethostbyname() uses DNS by default.
Diffstat (limited to '')
-rw-r--r--cpukit/pppd/ipcp.c2
1 files changed, 1 insertions, 1 deletions
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.