This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
PPP: Negotiate both primary and secondary/alternative DNS resolvers
- From: daniel dot neri at sigicom dot com (Daniel Néri)
- To: ecos-patches at sources dot redhat dot com
- Date: Mon, 28 Apr 2008 13:53:23 +0200
- Subject: PPP: Negotiate both primary and secondary/alternative DNS resolvers
- Cancel-lock: sha1:qgL1feJ13P9/3TXvO1OGX2RCFrY=
- Organization: Sigicom AB, Stockholm, Sweden
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