[lantiq]
[openwrt.git] / package / ppp / patches / 107-debian_pppatm_cleanup.patch
1 --- a/pppd/plugins/pppoatm/pppoatm.c
2 +++ b/pppd/plugins/pppoatm/pppoatm.c
3 @@ -75,13 +75,14 @@ static int setdevname_pppoatm(const char
4 //info("PPPoATM setdevname_pppoatm: '%s'", cp);
5 memset(&addr, 0, sizeof addr);
6 if (text2atm(cp, (struct sockaddr *) &addr, sizeof(addr),
7 - T2A_PVC | T2A_NAME) < 0) {
8 - if(doit)
9 - info("atm does not recognize: %s", cp);
10 + T2A_PVC | T2A_NAME | T2A_WILDCARD) < 0) {
11 + if (doit)
12 + info("cannot parse the ATM address: %s", cp);
13 return 0;
14 - }
15 - if (!doit) return 1;
16 - //if (!dev_set_ok()) return -1;
17 + }
18 + if (!doit)
19 + return 1;
20 +
21 memcpy(&pvcaddr, &addr, sizeof pvcaddr);
22 strlcpy(devnam, cp, sizeof devnam);
23 devstat.st_mode = S_IFSOCK;
24 @@ -170,7 +171,7 @@ static void disconnect_pppoatm(void)
25
26 void plugin_init(void)
27 {
28 -#if defined(__linux__)
29 +#ifdef linux
30 extern int new_style_driver; /* From sys-linux.c */
31 if (!ppp_available() && !new_style_driver)
32 fatal("Kernel doesn't support ppp_generic - "
This page took 0.048744 seconds and 5 git commands to generate.