changeset 2478:6aecbf23ac78

* src/ipcp.c (ipcp_init): Negotiate both primary and secondary DNS resolver addresses when CYGOPT_PPP_NS_NEGOTIATE is enabled.
author asl
date Thu, 01 May 2008 10:16:16 +0000
parents f675d1d3318c
children f324122c760c
files packages/net/ppp/current/ChangeLog packages/net/ppp/current/src/ipcp.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/ppp/current/ChangeLog
+++ b/packages/net/ppp/current/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-28  Daniel Néri  <daniel.neri@sigicom.com>
+
+	* src/ipcp.c (ipcp_init): Negotiate both primary and secondary DNS
+	resolver addresses when CYGOPT_PPP_NS_NEGOTIATE is enabled.
+
 2006-07-18  John Paul King  <john.king@transdatainc.com>
 
 	* src/sys-ecos.c (cyg_ppp_up): Bring semaphore init earlier to avoid
--- a/packages/net/ppp/current/src/ipcp.c
+++ b/packages/net/ppp/current/src/ipcp.c
@@ -240,7 +240,8 @@ ipcp_init(unit)
     wo->default_route = ppp_tty.options->default_route;
 
 #ifdef CYGOPT_PPP_NS_NEGOTIATE
-    wo->neg_dns1 = 1;       
+    wo->neg_dns1 = 1;
+    wo->neg_dns2 = 1;
 #endif
 
     /* max slots and slot-id compression are currently hardwired in */