OpenWrt – Blame information for rev 4

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 pppoatm: Allow wildcard ATM devices
2  
3 When operating pppd's pppoatm plugin with an USB ADSL modem, e.g. an
4 Alcatel Speedtouch, the ATM device number might change when the modem is
5 reconnected to the USB port or when the host controller resets the USB
6 device.
7  
8 This patch allows to specify the ATM device as wildcard which gives
9 enough flexibility to cope with changing device names.
10  
11 The patch originated from the Debain project.
12  
13 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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;