From: Duncan Sands Date: Wed, 30 Dec 2020 11:22:50 +0000 (+0100) Subject: Fix pppoatm plugin for pppd to accept a wildcard argument for an ATM device X-Git-Tag: ppp-2.4.9~27^2 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=2e8848d5c5a7951acf84c66fbb3417c535fce47f;hp=6531eb055818ea1b4df386b3e7132392771cd0e5 Fix pppoatm plugin for pppd to accept a wildcard argument for an ATM device From https://bugs.debian.org/376990 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. Signed-off-by: Samuel Thibault --- diff --git a/pppd/plugins/pppoatm/pppoatm.c b/pppd/plugins/pppoatm/pppoatm.c index d693350..cef5ff7 100644 --- a/pppd/plugins/pppoatm/pppoatm.c +++ b/pppd/plugins/pppoatm/pppoatm.c @@ -75,7 +75,7 @@ static int setdevname_pppoatm(const char *cp, const char **argv, int doit) //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;