/[lwip]/lwip/src/netif/ppp/lcp.c
ViewVC logotype

Diff of /lwip/src/netif/ppp/lcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by likewise, Mon Jul 5 00:00:22 2004 UTC revision 1.5 by christiaans, Mon Oct 10 07:27:31 2005 UTC
# Line 1235  static int lcp_reqci(fsm *f, Line 1235  static int lcp_reqci(fsm *f,
1235                          ho->neg_mru = 1;                /* Remember he sent MRU */                          ho->neg_mru = 1;                /* Remember he sent MRU */
1236                          ho->mru = cishort;              /* And remember value */                          ho->mru = cishort;              /* And remember value */
1237  #if TRACELCP > 0  #if TRACELCP > 0
1238                          sprintf(&traceBuf[traceNdx], " MRU %d", cishort);                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " MRU %d", cishort);
1239                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1240  #endif  #endif
1241                          break;                          break;
# Line 1268  static int lcp_reqci(fsm *f, Line 1268  static int lcp_reqci(fsm *f,
1268                          ho->neg_asyncmap = 1;                          ho->neg_asyncmap = 1;
1269                          ho->asyncmap = cilong;                          ho->asyncmap = cilong;
1270  #if TRACELCP > 0  #if TRACELCP > 0
1271                          sprintf(&traceBuf[traceNdx], " ASYNCMAP=%lX", cilong);                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " ASYNCMAP=%lX", cilong);
1272                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1273  #endif  #endif
1274                          break;                          break;
# Line 1320  static int lcp_reqci(fsm *f, Line 1320  static int lcp_reqci(fsm *f,
1320                                  }                                  }
1321                                  ho->neg_upap = 1;                                  ho->neg_upap = 1;
1322  #if TRACELCP > 0  #if TRACELCP > 0
1323                                  sprintf(&traceBuf[traceNdx], " PAP (%X)", cishort);                                  snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " PAP (%X)", cishort);
1324                                  traceNdx = strlen(traceBuf);                                  traceNdx = strlen(traceBuf);
1325  #endif  #endif
1326                                  break;                                  break;
# Line 1358  static int lcp_reqci(fsm *f, Line 1358  static int lcp_reqci(fsm *f,
1358                                          break;                                          break;
1359                                  }                                  }
1360  #if TRACELCP > 0  #if TRACELCP > 0
1361                                  sprintf(&traceBuf[traceNdx], " CHAP %X,%d", cishort, cichar);                                  snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " CHAP %X,%d", cishort, cichar);
1362                                  traceNdx = strlen(traceBuf);                                  traceNdx = strlen(traceBuf);
1363  #endif  #endif
1364                                  ho->chap_mdtype = cichar; /* save md type */                                  ho->chap_mdtype = cichar; /* save md type */
# Line 1390  static int lcp_reqci(fsm *f, Line 1390  static int lcp_reqci(fsm *f,
1390                          GETSHORT(cishort, p);                          GETSHORT(cishort, p);
1391                          GETLONG(cilong, p);                          GETLONG(cilong, p);
1392  #if TRACELCP > 0  #if TRACELCP > 0
1393                          sprintf(&traceBuf[traceNdx], " QUALITY (%x %x)", cishort, (unsigned int) cilong);                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " QUALITY (%x %x)", cishort, (unsigned int) cilong);
1394                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1395  #endif  #endif
1396    
# Line 1422  static int lcp_reqci(fsm *f, Line 1422  static int lcp_reqci(fsm *f,
1422                          }                          }
1423                          GETLONG(cilong, p);                          GETLONG(cilong, p);
1424  #if TRACELCP > 0  #if TRACELCP > 0
1425                          sprintf(&traceBuf[traceNdx], " MAGICNUMBER (%lX)", cilong);                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " MAGICNUMBER (%lX)", cilong);
1426                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1427  #endif  #endif
1428    
# Line 1445  static int lcp_reqci(fsm *f, Line 1445  static int lcp_reqci(fsm *f,
1445                                    
1446                  case CI_PCOMPRESSION:                  case CI_PCOMPRESSION:
1447  #if TRACELCP > 0  #if TRACELCP > 0
1448                          sprintf(&traceBuf[traceNdx], " PCOMPRESSION");                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " PCOMPRESSION");
1449                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1450  #endif  #endif
1451                          if (!ao->neg_pcompression ||                          if (!ao->neg_pcompression ||
# Line 1458  static int lcp_reqci(fsm *f, Line 1458  static int lcp_reqci(fsm *f,
1458                                    
1459                  case CI_ACCOMPRESSION:                  case CI_ACCOMPRESSION:
1460  #if TRACELCP > 0  #if TRACELCP > 0
1461                          sprintf(&traceBuf[traceNdx], " ACCOMPRESSION");                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " ACCOMPRESSION");
1462                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1463  #endif  #endif
1464                          if (!ao->neg_accompression ||                          if (!ao->neg_accompression ||
# Line 1471  static int lcp_reqci(fsm *f, Line 1471  static int lcp_reqci(fsm *f,
1471                                    
1472                  case CI_MRRU:                  case CI_MRRU:
1473  #if TRACELCP > 0  #if TRACELCP > 0
1474                          sprintf(&traceBuf[traceNdx], " CI_MRRU");                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " CI_MRRU");
1475                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1476  #endif  #endif
1477                          orc = CONFREJ;                          orc = CONFREJ;
# Line 1479  static int lcp_reqci(fsm *f, Line 1479  static int lcp_reqci(fsm *f,
1479                                    
1480                  case CI_SSNHF:                  case CI_SSNHF:
1481  #if TRACELCP > 0  #if TRACELCP > 0
1482                          sprintf(&traceBuf[traceNdx], " CI_SSNHF");                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " CI_SSNHF");
1483                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1484  #endif  #endif
1485                          orc = CONFREJ;                          orc = CONFREJ;
# Line 1487  static int lcp_reqci(fsm *f, Line 1487  static int lcp_reqci(fsm *f,
1487                                    
1488                  case CI_EPDISC:                  case CI_EPDISC:
1489  #if TRACELCP > 0  #if TRACELCP > 0
1490                          sprintf(&traceBuf[traceNdx], " CI_EPDISC");                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " CI_EPDISC");
1491                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1492  #endif  #endif
1493                          orc = CONFREJ;                          orc = CONFREJ;
# Line 1495  static int lcp_reqci(fsm *f, Line 1495  static int lcp_reqci(fsm *f,
1495                                    
1496                  default:                  default:
1497  #if TRACELCP  #if TRACELCP
1498                          sprintf(&traceBuf[traceNdx], " unknown %d", citype);                          snprintf(&traceBuf[traceNdx], sizeof(traceBuf), " unknown %d", citype);
1499                          traceNdx = strlen(traceBuf);                          traceNdx = strlen(traceBuf);
1500  #endif  #endif
1501                          orc = CONFREJ;                          orc = CONFREJ;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26