Package: ppp
Version: 2.4.3-20050321+2, 2.4.4b1-1

The pppoatm plugin for pppd cannot accept a wildcard argument for an ATM device.
This becomes an issue when using a USB ADSL modem (e.g. Alcatel Speedtouch) and 
the USB host controller disconnects the modem,
then later re-connects it with a new USB address and consequently a new ATM 
device number. By my reading of the changelogs,
this "bug" exists in both the stable and testing/unstable packages.

Details and original patch here:
http://www.mail-archive.com/[email protected]/msg08108.html

My system:
Debian GNU/Linux 3.1, kernel 2.6.16.22

This one-line patch does apparently require a 2.6.16 kernel. It is also not my 
patch; it was written by Duncan Sands and merely re-diff'd by me.

diff -ruNp ppp-2.4.3.orig/pppd/plugins/pppoatm/pppoatm.c 
ppp-2.4.3/pppd/plugins/pppoatm/pppoatm.c
--- ppp-2.4.3.orig/pppd/plugins/pppoatm/pppoatm.c    2004-11-06 
19:55:28.000000000 +1300
+++ ppp-2.4.3/pppd/plugins/pppoatm/pppoatm.c        2006-07-06 
14:10:47.885327414 +1200
@@ -75,7 +75,7 @@ static int setdevname_pppoatm(const char
       //info("PPPoATM setdevname_pppoatm: '%s'", cp);
       memset(&addr, 0, sizeof addr);
       if (text2atm(cp, (struct sockaddr *) &addr, sizeof(addr),
-           T2A_PVC | T2A_NAME) < 0) {
+           T2A_PVC | T2A_NAME | T2A_WILDCARD) < 0) {
               if(doit)
                   info("atm does not recognize: %s", cp);
               return 0;





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to