source:
npl/internetserver/poptop_ppp/patches/ppp-2.4.2-pppoatm-mtu.patch
@
5160d62
Last change on this file since 5160d62 was c5c522c, checked in by , 8 years ago | |
---|---|
|
|
File size: 872 bytes |
-
ppp-2.4.2/pppd/plugins/pppoatm/pppoatm.c
old new 175 175 { 176 176 int sock; 177 177 struct ifreq ifr; 178 if (mtu > pppoatm_max_mtu) 179 error("Couldn't increase MTU to %d", mtu); 178 if (pppoatm_max_mtu && mtu > pppoatm_max_mtu) { 179 warn("Couldn't increase MTU to %d. Using %d", mtu, pppoatm_max_mtu); 180 mtu = pppoatm_max_mtu; 181 } 180 182 sock = socket(AF_INET, SOCK_DGRAM, 0); 181 183 if (sock < 0) 182 184 fatal("Couldn't create IP socket: %m"); … … 192 194 int pcomp, 193 195 int accomp) 194 196 { 195 if (mru > pppoatm_max_mru) 196 error("Couldn't increase MRU to %d", mru); 197 if (pppoatm_max_mru && mru > pppoatm_max_mru) { 198 warn("Couldn't increase MRU to %d. Using %d", mru, pppoatm_max_mru); 199 mru = pppoatm_max_mru; 200 } 197 201 } 198 202 199 203 void plugin_init(void)
Note: See TracBrowser
for help on using the repository browser.