Hello,

In the current sources, only the primary DNS resolver's address is
negotiated (RFC 1877) when CYGOPT_PPP_NS_NEGOTIATE is enabled. The
patch below fixes that.


Best wishes,
Daniel

diff -Npru packages.552a89419756/net/ppp/current/ChangeLog packages.f24c28f4776a/net/ppp/current/ChangeLog
--- packages.552a89419756/net/ppp/current/ChangeLog	2008-04-28 13:35:09.000000000 +0200
+++ packages.f24c28f4776a/net/ppp/current/ChangeLog	2008-04-28 13:35:09.000000000 +0200
@@ -1,3 +1,8 @@
+2008-04-28  Daniel Néri  <[EMAIL PROTECTED]>
+
+	* 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  <[EMAIL PROTECTED]>
 
 	* src/sys-ecos.c (cyg_ppp_up): Bring semaphore init earlier to avoid
diff -Npru packages.552a89419756/net/ppp/current/src/ipcp.c packages.f24c28f4776a/net/ppp/current/src/ipcp.c
--- packages.552a89419756/net/ppp/current/src/ipcp.c	2008-04-28 13:35:09.000000000 +0200
+++ packages.f24c28f4776a/net/ppp/current/src/ipcp.c	2008-04-28 13:35:09.000000000 +0200
@@ -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 */
-- 
Daniel Néri <[EMAIL PROTECTED]>
Sigicom AB, Stockholm, Sweden

Reply via email to