I think the best way to implement this is some sort of config message
to the pppoe node (before the connect/listen). The NETGRAPH version
of ppp(8) is capable of doing ``chat scripts'' with netgraph nodes,
so it's fairly easy to configure the node configuration conversation...
Hopefully now that Christmas is over I'll be able to get back to
netgraph'ifying ppp :-)
> Felix-Antoine Paradis wrote:
> >
> > To get pppoe to work, just set the options in the kernel and use a good
> > config (ppp.conf) and use pppd.
> >
> > On Mon, 22 Jan 2001, Daniel C. Sobral wrote:
> >
> > > It seems I need the following parameters to get my PPPoE to work. Could
> > > we have these options, please?
> > >
> > > >> -f disc:sess
> > > >> The -f option sets the Ethernet frame types for
> > > >> PPPoE discovery and session frames. The types are
> > > >> specified as hexadecimal numbers separated by a
> > > >> colon. Standard PPPoE uses frame types 8863:8864.
> > > >> You should not use this option unless you are abso¡
> > > >> lutely sure the peer you are dealing with uses non-
> > > >> standard frame types. If your ISP uses non-stan¡
> > > >> dard frame types, complain!
>
> Definitly complain! This is equivalent to calling a protocol tcp/ip
> but using a first byte in the packet.
> I will look at a configuration message for the netgraph node
> but Brian will hav eto work out how to send it, and where the
> configuration parameter should be set to do this..
>
> The other possibility is a sysctl.
>
>
> > > >> -S service_name
> > > >> Specifies the desired service name. pppoe will
> > > >> only initiate sessions with access concentrators
> > > >> which can provide the specified service. In most
> > > >> cases, you should not specify this option. Use it
> > > >> only if you know that there are multiple access
> > > >> concentrators or know that you need a specific ser¡
> > > >> vice name.
>
>
> If you are talking about the netgraph based pppoe, then -xxx type
> flags are not how you configure it. I think you are talking about
> the (rather inefficient) userland ppp daemon.
>
> the service name requested is already an argument in the pppoe
> configuration.
>
> "If a PPPoE:iface[:provider] specification is given, ppp will at-
> tempt to create a PPP over Ethernet connection using the given
> iface interface by using netgraph(4). "
>
> In this case the "provider" is the service name.
>
>
> --
> __--_|\ Julian Elischer
> / \ [EMAIL PROTECTED]
> ( OZ ) World tour 2000
> ---> X_.---._/ from Perth, presently in: Budapest
> v
--
Brian <[EMAIL PROTECTED]> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message