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]

        

Reply via email to