9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Zoltan Jarai <jarai@mail.tvnet.hu>
To: 9fans@cse.psu.edu
Subject: [9fans] PPPoE
Date: Thu, 11 Apr 2002 08:43:47 +0000	[thread overview]
Message-ID: <m3y9fvm6av.fsf@localhost.localdomain> (raw)

I had to make the following modifications to Russ Cox's pppoe.c to get
it work with my ADSL provider (TVnet) here in Hungary.  TVnet does not
use PPP framing, so I did not need the -F (nor -f) option.  The buf[0]
at the end is a correction of a typo in the hexdump routine, useful
when debugging.

diff pppoe-orig.c pppoe.c
236c236
< 	char e[ERRMAX], path[64];
---
> 	char e[ERRLEN], path[64];
239c239
< 		rerrstr(e, sizeof e);
---
> 		errstr(e);
511d510
< 	argv[argc++] = "-F";
687a687
> 			buf[0] = '\0';

Still, I had problems viewing web pages and connecting to FTP sites.
So I checked out Roaring Penguin's PPPoE client for Linux.  As they
explain it (http://www.roaringpenguin.com/pppoe/als-pppoe-paper.pdf
section 4.5) they modify the MSS value in the TCP header of packets.
First, I tried to implement their trick (see among their sources
rp-pppoe-3.3/src/common.c:/^clampMSS) but I did not succeed, not
surprisingly, since I know next to nothing about TCP.  But then
lowering the default MSS to 1412 (value suggested by them) in the
kernel (/sys/src/9/ip/tcp.c:/DEF_MSS) helped.

Hope this helps.

Zoltan


             reply	other threads:[~2002-04-11  8:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11  8:43 Zoltan Jarai [this message]
2002-04-11 12:03 presotto
2002-04-12  0:09 ` Zoltan Jarai
2002-04-11 13:02 presotto

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=m3y9fvm6av.fsf@localhost.localdomain \
    --to=jarai@mail.tvnet.hu \
    --cc=9fans@cse.psu.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).