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
7 - system ("/sbin/modprobe pppoatm");
10 no_device_given_pppoatm();
11 fd = socket(AF_ATMPVC, SOCK_DGRAM, 0);
13 qos.txtp.max_sdu = lcp_allowoptions[0].mru + pppoatm_overhead();
14 qos.rxtp.max_sdu = lcp_wantoptions[0].mru + pppoatm_overhead();
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)))