All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
To: linux-ppp@vger.kernel.org
Subject: Re: PPP difficulties regarding connection establishment and bogus
Date: Tue, 01 Jul 2008 11:50:42 +0000	[thread overview]
Message-ID: <486A1A12.5020907@teltonika.lt> (raw)
In-Reply-To: <66abdca00806060145ua700d3cydeb3e37df39b94f8@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

Pierre-Yves Paulus wrote:
> Hello,
> 
> I've a Debian etch system connected to the web through a GPRS/UMTS
> PCMCIA card. I'm using pppd to connect it to the ISP. However, I see
> quite a lot of connection failures (connection establishment has to be
> tried quite a few times before it succeeds), and even worse, the
> connection often succeeds, but with bogus DNS servers IP's supplied
> (10.11.12.13 and 10.11.12.14), rendering it useless.
> 
> I've looked through the archives
> (http://www.opensubscriber.com/message/linux-ppp@vger.kernel.org/7889888.html),
> and found that the bogus DNS problem has already been seen when the
> peer insists on wins servers, but this is not the case here.
> 
> So I suppose that there are some differences between the various peers
> available by the ISP, and that only some of them accept the way "my"
> pppd deals with them, but I've no idea about how and what to change to
> increase the success rate and most importantly avoid this bogus DNS
> problem.

Attached is patch I made for my GPRS modem with the same problem.

[-- Attachment #2: ppp_dns_fix.patch --]
[-- Type: text/x-patch, Size: 587 bytes --]

diff -uprN ppp-2.4.4.orig/pppd/ipcp.c ppp-2.4.4/pppd/ipcp.c
--- ppp-2.4.4.orig/pppd/ipcp.c	2005-08-26 02:59:34.000000000 +0300
+++ ppp-2.4.4/pppd/ipcp.c	2008-03-15 19:00:53.000000000 +0200
@@ -1097,19 +1097,11 @@ ipcp_nakci(f, p, len, treat_as_reject)
 	      );
 
     NAKCIDNS(CI_MS_DNS1, req_dns1,
-	     if (treat_as_reject) {
-		 try.req_dns1 = 0;
-	     } else {
 		 try.dnsaddr[0] = cidnsaddr;
-	     }
 	     );
 
     NAKCIDNS(CI_MS_DNS2, req_dns2,
-	     if (treat_as_reject) {
-		 try.req_dns2 = 0;
-	     } else {
 		 try.dnsaddr[1] = cidnsaddr;
-	     }
 	     );
 
     /*

  parent reply	other threads:[~2008-07-01 11:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06  8:45 PPP difficulties regarding connection establishment and bogus DNS received Pierre-Yves Paulus
2008-06-09 23:32 ` PPP difficulties regarding connection establishment and bogus James Cameron
2008-07-01 11:50 ` Paulius Zaleckas [this message]
2008-07-19 10:05 ` Paul Mackerras
2008-07-21  9:34 ` Paulius Zaleckas
2008-07-22  0:04 ` James Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=486A1A12.5020907@teltonika.lt \
    --to=paulius.zaleckas@teltonika.lt \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.