[speedtouch] Re: Routing and ARP puzzle

2001-08-24 Thread P Kirk

That works perfectly now.  Many thanks to all who helped.


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Funny speeds for UK modem

2001-08-24 Thread Tim Woodall


Hi,

I have been having a look at the funny speeds for the BT ADSL reported by
the modem.

They appear to be scaled by 65536:

messages.1:Aug 17 19:20:23 heisenberg adsl.sh: ADSL line is up, downstream
at 37748736 kbit/s, upstream at 18874368 kbit/s

37748736/65536=576
18874368/65536=288

Benoit, do you have any ideas how this could be fixed without breaking the
numbers for the French service (which I presume is correct)?

Tim.

-- 
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://locofungus.2y.net/   http://www.locofungus.btinternet.co.uk/


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Routing and ARP puzzle

2001-08-24 Thread Benoit PAPILLAULT


Hi Patrick,

These are usual problems.

On Fri, 24 Aug 2001, Patrick Kirk wrote:

> Hi all,
> 
> Its almost there.  The modem works and a peer to peer connection is made
> with the remote host.
> 
> Can anyone tell me how to sort out routing?  Will route add -net /dev/ppp0
> work?
> 
> And what does the second error mean?
> 
> Thanks.
> 
> Aug 24 11:36:47 enterprise pppd[87]: not replacing existing default route to
> eth
> 0 [192.168.0.1]

I guess you have an internal network on 192.168.0/24. So, if you add a
simple route instead of a default route to eth0, it will work. I use 
"route add -net 192.168.0.0 netmask 255.255.255.0 dev eth0" for the route
on eth0 and next, pppd automatically add the default route to the Internet
through the ADSL connection.

> Aug 24 11:36:47 enterprise pppd[87]: Cannot determine ethernet address for
> proxy
>  ARP

You do not need to use ARP on your ppp0 interface, so remove the
"proxyarp" option or add "noproxyarp" to your /etc/ppp/peers/adsl file.

Benoit



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Routing and ARP puzzle

2001-08-24 Thread Tim Woodall

On Fri, 24 Aug 2001, Patrick Kirk wrote:

> Hi all,
>
> Its almost there.  The modem works and a peer to peer connection is made
> with the remote host.
>
> Can anyone tell me how to sort out routing?  Will route add -net /dev/ppp0
> work?
>
> And what does the second error mean?
>
> Thanks.
>

put route del -net default before you attempt to start pppd.

> Aug 24 11:36:47 enterprise pppd[87]: not replacing existing default
route to
> eth
> 0 [192.168.0.1]
> Aug 24 11:36:47 enterprise pppd[87]: Cannot determine ethernet address for
> proxy
>  ARP
>

No idea.


-- 
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://locofungus.2y.net/   http://www.locofungus.btinternet.co.uk/


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Routing and ARP puzzle

2001-08-24 Thread Patrick Kirk

Hi all,

Its almost there.  The modem works and a peer to peer connection is made
with the remote host.

Can anyone tell me how to sort out routing?  Will route add -net /dev/ppp0
work?

And what does the second error mean?

Thanks.

Aug 24 11:36:47 enterprise pppd[87]: not replacing existing default route to
eth
0 [192.168.0.1]
Aug 24 11:36:47 enterprise pppd[87]: Cannot determine ethernet address for
proxy
 ARP





Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] help

2001-08-24 Thread julien

salut
j'ai un modem alcatel usb.
Mandrake 8 (en texte seulement)
j'ai fait l'installation des drivers adsl comme décrit
sur le site http://benoit.papillault.free.fr
et quand je lance la conection il me met un erreur
usb_control/bulk_msg: timeout
il me marque ce message a plusieur moment
puis 
ADSL link goes UP
SIOCADDRT: No such device
et la il s'arrette
j'ai installe vraiment le minimum pour linux (j'ai pas
beaucoup de place)
peut aurais-je oublié un package important?
merci de me répondre


___
Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr !
Yahoo! Courrier : http://fr.mail.yahoo.com

Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Problems

2001-08-24 Thread Stéphane Gault

alex look la ligne de commande en dessous je crois que je sais d'où viennet
mes problemes de modem.

Stéphane 

-Message d'origine-
De: P Kirk [mailto:[EMAIL PROTECTED]]
Date: vendredi 24 août 2001 10:16
À: [EMAIL PROTECTED]
Objet: [speedtouch] Re: Problems


/usr/local/bin/modem_run -f  /your_path_to_mgmt.o/mgmt.o -m

So its after the mgmt.o assuming you have the path correct.

- Original Message -
From: "Stéphane Gault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 9:11 AM
Subject: [speedtouch] Re: Problems


| where do i need to check the the "-m" plz ...?? cuz i got the same
problem.
|
| Stéphane
|
|
|
| -Message d'origine-
| De: P Kirk [mailto:[EMAIL PROTECTED]]
| Date: vendredi 24 août 2001 10:09
| À: [EMAIL PROTECTED]
| Objet: [speedtouch] Re: Problems
|
|
|
| [snip]
| |
| | may be you missed the option -m after the upper line ??
| | I had the same probleme.
| |
| | Philippe.
| |
| |
| [snip]
| Yes that was it.
| How embarrassing - I thought I could read :-(
|
| Thank you Philippe
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
| mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Problems

2001-08-24 Thread P Kirk

It still outputs the message about failing to liad mgmt.o but then it goes
on to work anyway.  So no more rmmod/insmod stuff!

Now if only I could get ppp working :-(


- Original Message -
From: "Stéphane Gault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 9:21 AM
Subject: [speedtouch] Re: Problems


| ok thx, yep i got the right path in my script that i call ./adsl.up 8-)
|
| Stéphane
|
| -Message d'origine-
| De: P Kirk [mailto:[EMAIL PROTECTED]]
| Date: vendredi 24 août 2001 10:16
| À: [EMAIL PROTECTED]
| Objet: [speedtouch] Re: Problems
|
|
| /usr/local/bin/modem_run -f  /your_path_to_mgmt.o/mgmt.o -m
|
| So its after the mgmt.o assuming you have the path correct.
|
| - Original Message -
| From: "Stéphane Gault" <[EMAIL PROTECTED]>
| To: <[EMAIL PROTECTED]>
| Sent: Friday, August 24, 2001 9:11 AM
| Subject: [speedtouch] Re: Problems
|
|
| | where do i need to check the the "-m" plz ...?? cuz i got the same
| problem.
| |
| | Stéphane
| |
| |
| |
| | -Message d'origine-
| | De: P Kirk [mailto:[EMAIL PROTECTED]]
| | Date: vendredi 24 août 2001 10:09
| | À: [EMAIL PROTECTED]
| | Objet: [speedtouch] Re: Problems
| |
| |
| |
| | [snip]
| | |
| | | may be you missed the option -m after the upper line ??
| | | I had the same probleme.
| | |
| | | Philippe.
| | |
| | |
| | [snip]
| | Yes that was it.
| | How embarrassing - I thought I could read :-(
| |
| | Thank you Philippe
| |
| |
| | Liste de diffusion modem ALCATEL SpeedTouch USB
| | Pour se désinscrire :
| | mailto:[EMAIL PROTECTED]?subject=unsubscribe
| |
| |
| |
| | Liste de diffusion modem ALCATEL SpeedTouch USB
| | Pour se désinscrire :
| mailto:[EMAIL PROTECTED]?subject=unsubscribe
| |
| |
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
| mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Problems

2001-08-24 Thread Stéphane Gault

ok thx, yep i got the right path in my script that i call ./adsl.up 8-)

Stéphane 

-Message d'origine-
De: P Kirk [mailto:[EMAIL PROTECTED]]
Date: vendredi 24 août 2001 10:16
À: [EMAIL PROTECTED]
Objet: [speedtouch] Re: Problems


/usr/local/bin/modem_run -f  /your_path_to_mgmt.o/mgmt.o -m

So its after the mgmt.o assuming you have the path correct.

- Original Message -
From: "Stéphane Gault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 9:11 AM
Subject: [speedtouch] Re: Problems


| where do i need to check the the "-m" plz ...?? cuz i got the same
problem.
|
| Stéphane
|
|
|
| -Message d'origine-
| De: P Kirk [mailto:[EMAIL PROTECTED]]
| Date: vendredi 24 août 2001 10:09
| À: [EMAIL PROTECTED]
| Objet: [speedtouch] Re: Problems
|
|
|
| [snip]
| |
| | may be you missed the option -m after the upper line ??
| | I had the same probleme.
| |
| | Philippe.
| |
| |
| [snip]
| Yes that was it.
| How embarrassing - I thought I could read :-(
|
| Thank you Philippe
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
| mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Problems

2001-08-24 Thread P Kirk

/usr/local/bin/modem_run -f  /your_path_to_mgmt.o/mgmt.o -m

So its after the mgmt.o assuming you have the path correct.

- Original Message -
From: "Stéphane Gault" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 24, 2001 9:11 AM
Subject: [speedtouch] Re: Problems


| where do i need to check the the "-m" plz ...?? cuz i got the same
problem.
|
| Stéphane
|
|
|
| -Message d'origine-
| De: P Kirk [mailto:[EMAIL PROTECTED]]
| Date: vendredi 24 août 2001 10:09
| À: [EMAIL PROTECTED]
| Objet: [speedtouch] Re: Problems
|
|
|
| [snip]
| |
| | may be you missed the option -m after the upper line ??
| | I had the same probleme.
| |
| | Philippe.
| |
| |
| [snip]
| Yes that was it.
| How embarrassing - I thought I could read :-(
|
| Thank you Philippe
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
| mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|
|
| Liste de diffusion modem ALCATEL SpeedTouch USB
| Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe
|
|


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Problems

2001-08-24 Thread Stéphane Gault

where do i need to check the the "-m" plz ...?? cuz i got the same problem.

Stéphane 



-Message d'origine-
De: P Kirk [mailto:[EMAIL PROTECTED]]
Date: vendredi 24 août 2001 10:09
À: [EMAIL PROTECTED]
Objet: [speedtouch] Re: Problems



[snip]
| 
| may be you missed the option -m after the upper line ??
| I had the same probleme.
| 
| Philippe.
| 
| 
[snip]
Yes that was it.
How embarrassing - I thought I could read :-(  

Thank you Philippe


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire :
mailto:[EMAIL PROTECTED]?subject=unsubscribe



Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: Problems

2001-08-24 Thread P Kirk


[snip]
| 
| may be you missed the option -m after the upper line ??
| I had the same probleme.
| 
| Philippe.
| 
| 
[snip]
Yes that was it.
How embarrassing - I thought I could read :-(  

Thank you Philippe


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe





[speedtouch] Re: I need help to develop PPPoA3 ...

2001-08-24 Thread Tim Woodall

On Sun, 19 Aug 2001, Edouard Gomez wrote:

> Hello,
>
>   I'm still developing pppoa3 (that's a good news) but I have some
> problems and I don't find how to resolve them.
>
> So I post this message to try to find help. I need help from a good
> hacker who knows about threads and threads mutex in order to debug
> pppoa3 which is close to work. If you have knowledge about these two
> things please contact me.
>
> Thank you
>
> Edouard Gomez
>
> A source code snapshot can be found at : http://perso.wanadoo.fr/ed.gomez
>

Edouard,

Been through this code quite carefully last night.

Spotted one problem, one slight improvement, and one grammatical error.

First the improvement.

--- atm.c.orig  Fri Aug 24 08:16:46 2001
+++ atm.c   Fri Aug 24 08:19:43 2001
@@ -209,7 +209,7 @@
if(frame != data)
memcpy(frame, data, length);

-   total_length = ATM_CELL_DATA_SIZE * ((length + 8 + ATM_CELL_DATA_SIZE - 1) / 
ATM_CELL_DATA_SIZE);
+   total_length = ATM_CELL_DATA_SIZE * ((length + 6 + ATM_CELL_DATA_SIZE - 1) / 
+ATM_CELL_DATA_SIZE);

memset(frame + length, 0, total_length - length);

Testing this today. Seems to work. Done pings with lots of different
packet sizes with no problems. Basically we add two extra bytes of zero
which might just add an extra cell to the frame. Certainly atm_frame_dec
doesn't expect those zeros there.


Secondly the problem.

If report() can't create the /var/log/pppoa3.log file the mutex is left
locked. This will cause the second call to report() in main to block. I
would suggest two changes. 1. unlock the mutex and 2. set verbose to -1 so
we don't keep retrying every time report() is called. In this circumstance
I think a message to stderr is appropriate. Note that this could happen
for several reasons. chattr set on /var/log/pppoa3.log or specifying the
logfile on the command line.

There should possibly be a check that if you are overwriting a file then
only root could have created that file in the first place. Otherwise,
someone using /tmp/pppoa3.log as their log file might find themselves open
to someone creating a link to /etc/shadow for example. Not exactly sure
how this could be done or what should be done! You need to talk to some
of the experts at this sort of stuff if you think we should do something
about it. Just checking that the file doesn't exist is difficult enough
and can leave you open to a race condition.


Finally the grammatical error.

In write_to_ppp_thread there is the message "Buffer overflow, too much
cells for the same aal5 frame". This should read "... too many cells ..."


One last point, something of a style issue and can be religious :-)

The initializations FILE *log=NULL; int verbose=0; etc are superfluous.
Removing the initialization moves the code out of _DATA and into _BSS,
reducing the executable size by a few bytes. (This point can raise hackles
on LKML so I'll let you decide how it should be done :-)


Thanks for all the hard work. It is working brilliantly now and I have not
seen the connection traffic dying while pppd and pppoa2 keep running.


Regards,

Tim.


-- 
God said, "div D = rho, div B = 0, curl E = - @B/@t, curl H = J + @D/@t,"
and there was light.

   http://locofungus.2y.net/   http://www.locofungus.btinternet.co.uk/


Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se désinscrire : mailto:[EMAIL PROTECTED]?subject=unsubscribe