/[smeserver]/rpms/ppp/sme7/ppp-2.4.2-pppoatm-mtu.patch
ViewVC logotype

Contents of /rpms/ppp/sme7/ppp-2.4.2-pppoatm-mtu.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 12 17:08:30 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: ppp-2_4_4-1_3_el4_sme, HEAD
Error occurred while calculating annotation data.
Import on branch sme7 of package ppp-2.4.4-1.3.el4.sme.src.rpm

1 --- ppp-2.4.2/pppd/plugins/pppoatm/pppoatm.c.mtu 2004-10-07 13:32:05.660910432 +0100
2 +++ ppp-2.4.2/pppd/plugins/pppoatm/pppoatm.c 2004-10-07 13:58:20.096559832 +0100
3 @@ -175,8 +175,10 @@
4 {
5 int sock;
6 struct ifreq ifr;
7 - if (mtu > pppoatm_max_mtu)
8 - error("Couldn't increase MTU to %d", mtu);
9 + if (pppoatm_max_mtu && mtu > pppoatm_max_mtu) {
10 + warn("Couldn't increase MTU to %d. Using %d", mtu, pppoatm_max_mtu);
11 + mtu = pppoatm_max_mtu;
12 + }
13 sock = socket(AF_INET, SOCK_DGRAM, 0);
14 if (sock < 0)
15 fatal("Couldn't create IP socket: %m");
16 @@ -192,8 +194,10 @@
17 int pcomp,
18 int accomp)
19 {
20 - if (mru > pppoatm_max_mru)
21 - error("Couldn't increase MRU to %d", mru);
22 + if (pppoatm_max_mru && mru > pppoatm_max_mru) {
23 + warn("Couldn't increase MRU to %d. Using %d", mru, pppoatm_max_mru);
24 + mru = pppoatm_max_mru;
25 + }
26 }
27
28 void plugin_init(void)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed