Root/package/network/services/ppp/patches/107-debian_pppoatm_wildcard.patch

1pppoatm: Allow wildcard ATM devices
2
3When operating pppd's pppoatm plugin with an USB ADSL modem, e.g. an
4Alcatel Speedtouch, the ATM device number might change when the modem is
5reconnected to the USB port or when the host controller resets the USB
6device.
7
8This patch allows to specify the ATM device as wildcard which gives
9enough flexibility to cope with changing device names.
10
11The patch originated from the Debain project.
12
13Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
14
15--- a/pppd/plugins/pppoatm/pppoatm.c
16+++ b/pppd/plugins/pppoatm/pppoatm.c
17@@ -75,7 +75,7 @@ static int setdevname_pppoatm(const char
18     //info("PPPoATM setdevname_pppoatm: '%s'", cp);
19     memset(&addr, 0, sizeof addr);
20     if (text2atm(cp, (struct sockaddr *) &addr, sizeof(addr),
21- T2A_PVC | T2A_NAME) < 0) {
22+ T2A_PVC | T2A_NAME | T2A_WILDCARD) < 0) {
23                if(doit)
24                    info("atm does not recognize: %s", cp);
25         return 0;
26

Archive Download this file



interactive