> Date: Mon, 22 Feb 2010 16:13:59 -0800 > From: Russ Cox <[email protected]> > Subject: Re: [9fans] pppoe on Plan 9 > To: Fans of the OS Plan 9 from Bell Labs <[email protected]> > Message-ID: > <[email protected]> > 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.
