new squashfs option
[openwrt.git] / openwrt / package / ppp / patches / 202-atm_fix.patch
1 --- ppp-2.4.3/pppd/plugins/pppoatm/pppoatm.c 2005-08-26 15:18:55.000000000 +0200
2 +++ ppp-2.4.3/pppd/plugins/pppoatm/pppoatm.c 2005-08-26 15:19:51.000000000 +0200
3 @@ -136,8 +136,6 @@
4 int fd;
5 struct atm_qos qos;
6
7 - system ("/sbin/modprobe pppoatm");
8 -
9 if (!device_got_set)
10 no_device_given_pppoatm();
11 fd = socket(AF_ATMPVC, SOCK_DGRAM, 0);
12 @@ -152,8 +150,7 @@
13 qos.txtp.max_sdu = lcp_allowoptions[0].mru + pppoatm_overhead();
14 qos.rxtp.max_sdu = lcp_wantoptions[0].mru + pppoatm_overhead();
15 qos.aal = ATM_AAL5;
16 - if (setsockopt(fd, SOL_ATM, SO_ATMQOS, &qos, sizeof(qos)) < 0)
17 - fatal("setsockopt(SO_ATMQOS): %m");
18 + setsockopt(fd, SOL_ATM, SO_ATMQOS, &qos, sizeof(qos));
19 /* TODO: accept on SVCs... */
20 if (connect(fd, (struct sockaddr *) &pvcaddr,
21 sizeof(struct sockaddr_atmpvc)))
This page took 0.041698 seconds and 5 git commands to generate.