source: npl/internetserver/poptop_ppp/patches/ppp-2.4.2-pppoatm-mtu.patch @ 5160d62

perl-5.22
Last change on this file since 5160d62 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 872 bytes
  • ppp-2.4.2/pppd/plugins/pppoatm/pppoatm.c

    old new  
    175175{
    176176        int sock;
    177177        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        }
    180182        sock = socket(AF_INET, SOCK_DGRAM, 0);
    181183        if (sock < 0)
    182184                fatal("Couldn't create IP socket: %m");
     
    192194                              int pcomp,
    193195                              int accomp)
    194196{
    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        }
    197201}
    198202
    199203void plugin_init(void)
Note: See TracBrowser for help on using the repository browser.