Linux PPP protocol development
 help / color / mirror / Atom feed
* Help - Auto PPPoA and PPPoE detection in ADSL line
@ 2005-06-16  7:09 Ranjeet Kumar - R&D
  2005-06-16  8:40 ` Arvin Schnell
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ranjeet Kumar - R&D @ 2005-06-16  7:09 UTC (permalink / raw)
  To: linux-ppp

Hi, 

I am new in this group, if anything is wrong, please excuse me in advance.

We have ADSL modem running Linux Version - 2.4 and pppd version 2.4.1. We
want to detect the protocol, whether it is PPPoE or PPPoA, of the connected
ADSL line. Can anybody help me in providing information on how to achieve
this task? We are using pppoe and pppoa plugin with pppd to connect to DSLAM
(ISP).

Really, appreciate the any help!

Regards,
Ranjeet



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help - Auto PPPoA and PPPoE detection in ADSL line
  2005-06-16  7:09 Help - Auto PPPoA and PPPoE detection in ADSL line Ranjeet Kumar - R&D
@ 2005-06-16  8:40 ` Arvin Schnell
  2005-06-16 12:56 ` Marco d'Itri
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Arvin Schnell @ 2005-06-16  8:40 UTC (permalink / raw)
  To: linux-ppp

On Thu, Jun 16, 2005 at 03:09:04PM +0800, Ranjeet Kumar - R&D wrote:
> Hi, 
> 
> I am new in this group, if anything is wrong, please excuse me in advance.
> 
> We have ADSL modem running Linux Version - 2.4 and pppd version 2.4.1. We
> want to detect the protocol, whether it is PPPoE or PPPoA, of the connected
> ADSL line. Can anybody help me in providing information on how to achieve
> this task? We are using pppoe and pppoa plugin with pppd to connect to DSLAM
> (ISP).

Detecting of PPPoE is easy: Send a PADI and see if you receive a
PADO.

This can be done with 'pppoe -A' included in the rp-pppoe source
or you can also write your one code.

I do not have experiences with PPPoA.

ciao Arvin

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help - Auto PPPoA and PPPoE detection in ADSL line
  2005-06-16  7:09 Help - Auto PPPoA and PPPoE detection in ADSL line Ranjeet Kumar - R&D
  2005-06-16  8:40 ` Arvin Schnell
@ 2005-06-16 12:56 ` Marco d'Itri
  2005-06-16 12:57 ` Marco d'Itri
  2005-06-16 13:34 ` James Carlson
  3 siblings, 0 replies; 5+ messages in thread
From: Marco d'Itri @ 2005-06-16 12:56 UTC (permalink / raw)
  To: linux-ppp

On Jun 16, Ranjeet Kumar - R&D <Ranjeet.Kumar@aztech.com> wrote:

> We have ADSL modem running Linux Version - 2.4 and pppd version 2.4.1. We
> want to detect the protocol, whether it is PPPoE or PPPoA, of the connected
> ADSL line. Can anybody help me in providing information on how to achieve
> this task? We are using pppoe and pppoa plugin with pppd to connect to DSLAM
> (ISP).
The PPP book by James Carlson explains how to do it.
OTOH it's probably better to implement this in a standalone application
than in pppd.

-- 
ciao,
Marco

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help - Auto PPPoA and PPPoE detection in ADSL line
  2005-06-16  7:09 Help - Auto PPPoA and PPPoE detection in ADSL line Ranjeet Kumar - R&D
  2005-06-16  8:40 ` Arvin Schnell
  2005-06-16 12:56 ` Marco d'Itri
@ 2005-06-16 12:57 ` Marco d'Itri
  2005-06-16 13:34 ` James Carlson
  3 siblings, 0 replies; 5+ messages in thread
From: Marco d'Itri @ 2005-06-16 12:57 UTC (permalink / raw)
  To: linux-ppp

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

On Jun 16, Arvin Schnell <arvin@suse.de> wrote:

> Detecting of PPPoE is easy: Send a PADI and see if you receive a
> PADO.
This is not enough, you also need to account for the presence (or not)
of LLC/SNAP encapsulation.

-- 
ciao,
Marco

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Help - Auto PPPoA and PPPoE detection in ADSL line
  2005-06-16  7:09 Help - Auto PPPoA and PPPoE detection in ADSL line Ranjeet Kumar - R&D
                   ` (2 preceding siblings ...)
  2005-06-16 12:57 ` Marco d'Itri
@ 2005-06-16 13:34 ` James Carlson
  3 siblings, 0 replies; 5+ messages in thread
From: James Carlson @ 2005-06-16 13:34 UTC (permalink / raw)
  To: linux-ppp

Marco d'Itri writes:
> On Jun 16, Ranjeet Kumar - R&D <Ranjeet.Kumar@aztech.com> wrote:
> 
> > We have ADSL modem running Linux Version - 2.4 and pppd version 2.4.1. We
> > want to detect the protocol, whether it is PPPoE or PPPoA, of the connected
> > ADSL line. Can anybody help me in providing information on how to achieve
> > this task? We are using pppoe and pppoa plugin with pppd to connect to DSLAM
> > (ISP).
> The PPP book by James Carlson explains how to do it.

Actually, I just discuss regular sync detection methods.  Methods on
ATM _should_ be similar in concept, but aren't described there.

> OTOH it's probably better to implement this in a standalone application
> than in pppd.

I agree with that.

-- 
James Carlson                                 <carlsonj@workingcode.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-16 13:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-16  7:09 Help - Auto PPPoA and PPPoE detection in ADSL line Ranjeet Kumar - R&D
2005-06-16  8:40 ` Arvin Schnell
2005-06-16 12:56 ` Marco d'Itri
2005-06-16 12:57 ` Marco d'Itri
2005-06-16 13:34 ` James Carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox