Diff for /embedaddon/mpd/src/lcp.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/07/22 08:44:29 version 1.1.1.2, 2016/11/01 09:56:12
Line 226  LcpConfigure(Fsm fp) Line 226  LcpConfigure(Fsm fp)
     lcp->peer_reject = 0;      lcp->peer_reject = 0;
   
     /* Initialize normal LCP stuff */      /* Initialize normal LCP stuff */
    lcp->peer_mru = l->conf.mtu;    lcp->peer_mru = PhysGetMtu(l, 1);
    lcp->want_mru = l->conf.mru;    lcp->want_mru = PhysGetMru(l, 1);
    if (l->type && (lcp->want_mru > l->type->mru))    if (l->type && (lcp->want_mru > PhysGetMru(l, 0)))
        lcp->want_mru = l->type->mru;        lcp->want_mru = PhysGetMru(l, 0);
     lcp->peer_accmap = 0xffffffff;      lcp->peer_accmap = 0xffffffff;
     lcp->want_accmap = l->conf.accmap;      lcp->want_accmap = l->conf.accmap;
     lcp->peer_acfcomp = FALSE;      lcp->peer_acfcomp = FALSE;
Line 793  LcpDecodeConfig(Fsm fp, FsmOption list, int num, int m Line 793  LcpDecodeConfig(Fsm fp, FsmOption list, int num, int m
   
     /* If we have got request, forget the previous values */      /* If we have got request, forget the previous values */
     if (mode == MODE_REQ) {      if (mode == MODE_REQ) {
        lcp->peer_mru = l->conf.mtu;        lcp->peer_mru = PhysGetMtu(l, 1);
         lcp->peer_accmap = 0xffffffff;          lcp->peer_accmap = 0xffffffff;
         lcp->peer_acfcomp = FALSE;          lcp->peer_acfcomp = FALSE;
         lcp->peer_protocomp = FALSE;          lcp->peer_protocomp = FALSE;
Line 1127  LcpDecodeConfig(Fsm fp, FsmOption list, int num, int m Line 1127  LcpDecodeConfig(Fsm fp, FsmOption list, int num, int m
   
           memcpy(&magic, opt->data, 4);            memcpy(&magic, opt->data, 4);
           magic = ntohl(magic);            magic = ntohl(magic);
          Log(LG_LCP, ("[%s]   %s %08x", l->name, oi->name, magic));          Log(LG_LCP, ("[%s]   %s 0x%08x", l->name, oi->name, magic));
           switch (mode) {            switch (mode) {
             case MODE_REQ:              case MODE_REQ:
               if (lcp->want_magic) {                if (lcp->want_magic) {

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>