9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Artem Pylypchuk <articice@ua.fm>
To: 9fans@9fans.net
Subject: Re: [9fans] pppoe on Plan 9
Date: Tue, 23 Feb 2010 12:29:12 +0200	[thread overview]
Message-ID: <201002231229.13030.articice@ua.fm> (raw)
In-Reply-To: <mailman.10146.1266886523.1513.9fans@9fans.net>


> Date: Mon, 22 Feb 2010 16:13:59 -0800
> From: Russ Cox <rsc@swtch.com>
> Subject: Re: [9fans] pppoe on Plan 9
> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
> Message-ID:
> 	<dd6fe68a1002221613h4c6597abkfb3cdd8a79f7a739@mail.gmail.com>
> Content-Type: text/plain; charset=UTF-8
>
> > 00304894958d -> 00508d68c9c0 type 0x8863
> > ? ? ? ?vers 1 type 1 code 0x7 sessid 0x0 length 63
> > ? ? ? ?0x102 22: ac 'pecs-nas1.tvnetwork.hu'
> > ? ? ? ?0x101 9: service 'TvNetWork'
> > ? ? ? ?0x104 20: ac cookie 31e0aff8b09a633faae5b9685fdfbd0dad000000
> > dropping unwanted pkt: no matching service name
>
> try adding
>      -S TvNetWork
> to your command line.
>
> it looks like in pppoe.c the block
>
> 	if((s = findtag(pkt, TagSrvName, &len, 0)) == nil)
> 		return bad("no matching service name");
> 	if(len != strlen(srvname) || memcmp(s, srvname, len) != 0)
> 		return bad("no matching service name");
>
> should be inside a if(srvname[0] != '\0') { ... }.

this is because the PPPoE RFC defines strings "provider name/access
concentrator" and "service name" in service offer packets, in case you have
lots of providers and different connections in your network. The services may
include different payment packages, special line for voip/video, a VPN, etc.
Offers are collected after a request broadcast.



       reply	other threads:[~2010-02-23 10:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.10146.1266886523.1513.9fans@9fans.net>
2010-02-23 10:29 ` Artem Pylypchuk [this message]
2010-02-23 18:27   ` Russ Cox
2010-02-20 10:30 Bela Valek
2010-02-20 18:30 ` Russ Cox
2010-02-22  8:32   ` Bela Valek
2010-02-22 18:02     ` Russ Cox
2010-02-22 18:06       ` Eris Discordia
2010-02-22 18:31       ` Bela Valek
2010-02-23  0:13         ` Russ Cox
2010-02-23 16:48           ` Bela Valek

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=201002231229.13030.articice@ua.fm \
    --to=articice@ua.fm \
    --cc=9fans@9fans.net \
    /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).