[BACK]Return to if_spppsubr.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / net

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/net/if_spppsubr.c between version 1.187 and 1.187.2.1

version 1.187, 2020/03/06 10:26:59 version 1.187.2.1, 2020/04/07 18:28:40
Line 146  __KERNEL_RCSID(0, "$NetBSD$");
Line 146  __KERNEL_RCSID(0, "$NetBSD$");
 #define LCP_OPT_RESERVED        6       /* reserved */  #define LCP_OPT_RESERVED        6       /* reserved */
 #define LCP_OPT_PROTO_COMP      7       /* protocol field compression */  #define LCP_OPT_PROTO_COMP      7       /* protocol field compression */
 #define LCP_OPT_ADDR_COMP       8       /* address/control field compression */  #define LCP_OPT_ADDR_COMP       8       /* address/control field compression */
   #define LCP_OPT_FCS_ALTS        9       /* FCS alternatives */
   #define LCP_OPT_SELF_DESC_PAD   10      /* self-describing padding */
   #define LCP_OPT_CALL_BACK       13      /* callback */
   #define LCP_OPT_COMPOUND_FRMS   15      /* compound frames */
   #define LCP_OPT_MP_MRRU         17      /* multilink MRRU */
   #define LCP_OPT_MP_SSNHF        18      /* multilink short seq. numbers */
   #define LCP_OPT_MP_EID          19      /* multilink endpoint discriminator */
   
 #define IPCP_OPT_ADDRESSES      1       /* both IP addresses; deprecated */  #define IPCP_OPT_ADDRESSES      1       /* both IP addresses; deprecated */
 #define IPCP_OPT_COMPRESSION    2       /* IP compression protocol */  #define IPCP_OPT_COMPRESSION    2       /* IP compression protocol */
Line 2374  sppp_lcp_RCR(struct sppp *sp, struct lcp
Line 2381  sppp_lcp_RCR(struct sppp *sp, struct lcp
                         if (debug)                          if (debug)
                                 addlog(" [invalid]");                                  addlog(" [invalid]");
                         break;                          break;
                   case LCP_OPT_MP_EID:
                           if (len >= l && l >= 3) {
                                   if (debug)
                                           addlog(" [rej]");
                                   break;
                           }
                           if (debug)
                                   addlog(" [invalid]");
                           break;
                   case LCP_OPT_MP_SSNHF:
                           if (len >= 2 && l == 2) {
                                   if (debug)
                                           addlog(" [rej]");
                                   break;
                           }
                           if (debug)
                                   addlog(" [invalid]");
                           break;
                   case LCP_OPT_MP_MRRU:
                           /* Multilink maximum received reconstructed unit */
                           /* should be fall through, both are same length */
                           /* for now, check, then reject anyway */
                           if (len >= 4 && l == 4) {
                                   if (debug)
                                           addlog(" %d [rej]", (p[2] <<8) + p[3]);
                                   break;
                           }
                           if (debug)
                                   addlog(" [invalid]");
                           break;
                 case LCP_OPT_MRU:                  case LCP_OPT_MRU:
                         /* Maximum receive unit. */                          /* Maximum receive unit. */
                         if (len >= 4 && l == 4)                          if (len >= 4 && l == 4)
Line 6016  sppp_lcp_opt_name(u_char opt)
Line 6053  sppp_lcp_opt_name(u_char opt)
         case LCP_OPT_MAGIC:             return "magic";          case LCP_OPT_MAGIC:             return "magic";
         case LCP_OPT_PROTO_COMP:        return "proto-comp";          case LCP_OPT_PROTO_COMP:        return "proto-comp";
         case LCP_OPT_ADDR_COMP:         return "addr-comp";          case LCP_OPT_ADDR_COMP:         return "addr-comp";
           case LCP_OPT_SELF_DESC_PAD:     return "sdpad";
           case LCP_OPT_CALL_BACK:         return "callback";
           case LCP_OPT_COMPOUND_FRMS:     return "cmpd-frms";
           case LCP_OPT_MP_MRRU:           return "mrru";
           case LCP_OPT_MP_SSNHF:          return "mp-ssnhf";
           case LCP_OPT_MP_EID:            return "mp-eid";
         }          }
         snprintf(buf, sizeof(buf), "0x%x", opt);          snprintf(buf, sizeof(buf), "0x%x", opt);
         return buf;          return buf;

Legend:
Removed from v.1.187  
changed lines
  Added in v.1.187.2.1

CVSweb <webmaster@jp.NetBSD.org>