This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PPP: Negotiate both primary and secondary/alternative DNS resolvers


       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  <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
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 <daniel.neri@sigicom.com>
Sigicom AB, Stockholm, Sweden

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]