1
0

107-debian_pppoatm_wildcard.patch 930 B

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