Hi Francois,
I tested the first patch and this one on pppoa 1.2 beta 2 withous
success.
I attached ppp.log and ppp.config to see if it helps.
Thanks very much,
Nuno Teixeira
On Sat, Jul 12, 2003 at 05:56:23PM +0200, Francois Rogler wrote:
>
> Modifed patch ... should be ok this one.
>
> --
> Francois Rogler
>
>
> -- Attached file included as plaintext by Listar --
>
> Index: pppoa3.c
> ===================================================================
> RCS file: /cvsroot/speedtouch/speedtouch/src/pppoa3.c,v
> retrieving revision 1.30
> diff -r1.30 pppoa3.c
> 32c32
> < #ifdef __linux__
> ---
> > #if defined (__FreeBSD__) || defined (__linux__)
> 68a69
> > #ifdef __linux__
> 70a72
> > #endif /* Linux */
> 1548,1549c1550,1557
> < struct ifreq ifr;
> < int fd, err;
> ---
> > int fd;
> >
> > #if defined (__FreeBSD__)
> > /* NOTE: probably have to check for tap1, 2 ... is it fails on the 1st
> > */
> > if( (fd = open("/dev/tap0", O_RDWR | O_FSYNC)) < 0 )
> > return -1;
> > #endif /* BSD */
> 1551,1552c1559,1562
> < if( (fd = open("/dev/net/tun", O_RDWR | O_SYNC)) < 0 )
> < return -1;
> ---
> > #ifdef __linux__
> > {
> > struct ifreq ifr;
> > int fd, err;
> 1554,1555c1564,1565
> < memset(&ifr, 0, sizeof(ifr));
> < ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
> ---
> > if( (fd = open("/dev/net/tun", O_RDWR | O_SYNC)) < 0 )
> > return -1;
> 1557,1560c1567,1574
> < if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
> < close(fd);
> < return err;
> < }
> ---
> > memset(&ifr, 0, sizeof(ifr));
> > ifr.ifr_flags = IFF_TAP | IFF_NO_PI;
> >
> > if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
> > close(fd);
> > return err;
> > }
> > #endif /* Linux */
> 1562c1576
> < return fd;
> ---
> > return fd;
>
>
> Liste de diffusion modem ALCATEL SpeedTouch USB
> Pour se d?sinscrire : mailto:[EMAIL PROTECTED]
>
>
--
/*
PGP fingerprint:
C6D1 06ED EB54 A99C 6B14 6732 0A5D 810D 727D F6C6
*/
-- Attached file included as plaintext by Listar --
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: bundle: Establish
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: deflink: closed -> opening
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: deflink: Connected!
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: deflink: opening -> dial
Jul 12 22:19:26 gw ppp[12171]: tun0: Chat: deflink: Dial attempt 1 of 10000
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: deflink: dial -> carrier
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: deflink: carrier -> login
Jul 12 22:19:26 gw ppp[12171]: tun0: Phase: deflink: login -> lcp
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: read (0): Connection reset by
peer
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: Disconnected!
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: lcp -> logout
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: Disconnected!
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: logout -> hangup
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: Connect time: 1 secs: 0 octets
in, 26 octets out
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: 0 packets in, 1 packets out
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: total 26 bytes/sec, peak 0 bytes/sec on
Sat Jul 12 22:19:26 2003
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: HUPing 12173
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: deflink: hangup -> closed
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: bundle: Dead
Jul 12 22:19:27 gw ppp[12171]: tun0: Phase: PPP Terminated (normal).
Jul 12 22:19:27 gw ppp[12170]: tun0: Phase: Parent: Child failed (errdead)
Jul 12 22:19:27 gw ppp[12171]: tun0: Chat: Parent notified of failure
Jul 12 22:20:16 gw ppp[12179]: Phase: Using interface: tun0
Jul 12 22:20:16 gw ppp[12179]: Phase: deflink: Created in closed state
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set authname [EMAIL PROTECTED]
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set authkey ********
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set device !/usr/local/sbin/pppoa3
-b -e 1 -vpi 0 -vci 35 -v 1
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: accept chap
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set speed sync
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set timeout 0
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: enable lqr
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set lqrperiod 5
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set redial 15 10000
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set dial
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: set ifaddr 10.0.0.1/0 10.0.0.2/0
255.255.255.0 0.0.0.0
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: add default HISADDR
Jul 12 22:20:16 gw ppp[12179]: tun0: Warning: Add route failed: 0.0.0.0/0 already
exists
Jul 12 22:20:16 gw ppp[12179]: tun0: Command: adsl: enable dns
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: PPP Started (background mode).
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: bundle: Establish
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: deflink: closed -> opening
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: deflink: Connected!
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: deflink: opening -> dial
Jul 12 22:20:16 gw ppp[12180]: tun0: Chat: deflink: Dial attempt 1 of 10000
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: deflink: dial -> carrier
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: deflink: carrier -> login
Jul 12 22:20:16 gw ppp[12180]: tun0: Phase: deflink: login -> lcp
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: read (0): Connection reset by
peer
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: Disconnected!
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: lcp -> logout
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: Disconnected!
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: logout -> hangup
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: Connect time: 1 secs: 0 octets
in, 26 octets out
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: 0 packets in, 1 packets out
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: total 26 bytes/sec, peak 0 bytes/sec on
Sat Jul 12 22:20:16 2003
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: HUPing 12182
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: deflink: hangup -> closed
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: bundle: Dead
Jul 12 22:20:17 gw ppp[12180]: tun0: Phase: PPP Terminated (normal).
Jul 12 22:20:17 gw ppp[12179]: tun0: Phase: Parent: Child failed (errdead)
Jul 12 22:20:17 gw ppp[12180]: tun0: Chat: Parent notified of failure
Jul 12 22:20:19 gw ppp[12183]: Phase: Using interface: tun0
Jul 12 22:20:19 gw ppp[12183]: Phase: deflink: Created in closed state
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set authname [EMAIL PROTECTED]
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set authkey ********
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set device !/usr/local/sbin/pppoa3
-b -e 1 -vpi 0 -vci 35 -v 1
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: accept chap
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set speed sync
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set timeout 0
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: enable lqr
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set lqrperiod 5
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set redial 15 10000
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set dial
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: set ifaddr 10.0.0.1/0 10.0.0.2/0
255.255.255.0 0.0.0.0
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: add default HISADDR
Jul 12 22:20:19 gw ppp[12183]: tun0: Warning: Add route failed: 0.0.0.0/0 already
exists
Jul 12 22:20:19 gw ppp[12183]: tun0: Command: adsl: enable dns
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: PPP Started (background mode).
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: bundle: Establish
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: deflink: closed -> opening
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: deflink: Connected!
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: deflink: opening -> dial
Jul 12 22:20:19 gw ppp[12184]: tun0: Chat: deflink: Dial attempt 1 of 10000
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: deflink: dial -> carrier
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: deflink: carrier -> login
Jul 12 22:20:19 gw ppp[12184]: tun0: Phase: deflink: login -> lcp
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: read (0): Connection reset by
peer
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: Disconnected!
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: lcp -> logout
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: Disconnected!
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: logout -> hangup
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: Connect time: 1 secs: 0 octets
in, 26 octets out
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: 0 packets in, 1 packets out
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: total 26 bytes/sec, peak 0 bytes/sec on
Sat Jul 12 22:20:19 2003
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: HUPing 12186
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: deflink: hangup -> closed
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: bundle: Dead
Jul 12 22:20:20 gw ppp[12184]: tun0: Phase: PPP Terminated (normal).
Jul 12 22:20:20 gw ppp[12183]: tun0: Phase: Parent: Child failed (errdead)
Jul 12 22:20:20 gw ppp[12184]: tun0: Chat: Parent notified of failure
-- Attached file included as plaintext by Listar --
#################################################################
# PPP Sample Configuration File to use with the Speedtouch USB
# Written by Francois Rogler <[EMAIL PROTECTED]>
#
# You will have to fill in :
# - <login>
# - <password>
# - <VPI>.<VCI> os defined by your provider. Common values are :
# - 8.35 or 8.67 in France
# - 0.38 in the UK
# - 8.48 in the Netherlands
# - 8.35 in the USA
# - 8.35 in Italy
#
# $Id: ppp.conf.sample,v 1.3 2001/08/14 21:15:19 rogler Exp $
#################################################################
default:
ident user-ppp VERSION (built COMPILATIONDATE)
set log Phase Chat IPCP CCP tun command
adsl:
set authname ***********
set authkey *********
set device !"/usr/local/sbin/pppoa3 -b -e 1 -vpi 0 -vci 35 -v 1"
accept chap
set speed sync
set timeout 0
enable lqr
set lqrperiod 5
set redial 15 10000
set dial ""
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
enable dns
Liste de diffusion modem ALCATEL SpeedTouch USB
Pour se d�sinscrire : mailto:[EMAIL PROTECTED]