Lines Matching refs:nb

703 nPut(PPPControl *pc, struct pbuf *nb)
708 for(b = nb; b != NULL; b = b->next) {
715 pbuf_free(nb);
720 snmp_add_ifoutoctets(&pc->netif, nb->tot_len);
722 pbuf_free(nb);
733 pppAppend(u_char c, struct pbuf *nb, ext_accm *outACCM)
735 struct pbuf *tb = nb;
741 if (nb && (PBUF_POOL_BUFSIZE - nb->len) < 2) {
744 nb->next = tb;
748 nb = tb;
751 if (nb) {
753 *((u_char*)nb->payload + nb->len++) = PPP_ESCAPE;
754 *((u_char*)nb->payload + nb->len++) = c ^ PPP_TRANS;
756 *((u_char*)nb->payload + nb->len++) = c;
1605 struct pbuf *nb = (struct pbuf *)arg;
1609 pd = ((struct pppInputHeader *)nb->payload)->unit;
1610 protocol = ((struct pppInputHeader *)nb->payload)->proto;
1612 if(pbuf_header(nb, -(int)sizeof(struct pppInputHeader))) {
1619 snmp_add_ifinoctets(&pppControl[pd].netif, nb->tot_len);
1637 PPPDEBUG(LOG_INFO, ("pppInput[%d]: vj_comp in pbuf len=%d\n", pd, nb->len));
1642 if ((vj_uncompress_tcp(&nb, &pppControl[pd].vjComp) >= 0) && (pppControl[pd].netif.input)) {
1643 pppControl[pd].netif.input(nb, &pppControl[pd].netif);
1650 PPPDEBUG(LOG_INFO, ("pppInput[%d]: drop VJ Comp in %d:%s\n", pd, nb->len, nb->payload));
1656 PPPDEBUG(LOG_INFO, ("pppInput[%d]: vj_un in pbuf len=%d\n", pd, nb->len));
1661 if ((vj_uncompress_uncomp(nb, &pppControl[pd].vjComp) >= 0) && pppControl[pd].netif.input) {
1662 pppControl[pd].netif.input(nb, &pppControl[pd].netif);
1671 pd, nb->len, LWIP_MIN(nb->len * 2, 40), nb->payload));
1676 PPPDEBUG(LOG_INFO, ("pppInput[%d]: ip in pbuf len=%d\n", pd, nb->len));
1678 pppControl[pd].netif.input(nb, &pppControl[pd].netif);
1692 PPPDEBUG(LOG_INFO, ("pppInput[%d]: %s len=%d\n", pd, protp->name, nb->len));
1693 nb = pppSingleBuf(nb);
1694 (*protp->input)(pd, nb->payload, nb->len);
1701 PPPDEBUG(LOG_INFO, ("pppInput[%d]: rejecting unsupported proto 0x%"X16_F" len=%d\n", pd, protocol, nb->len));
1702 if (pbuf_header(nb, sizeof(protocol))) {
1709 SMEMCPY(nb->payload, &protocol, sizeof(protocol));
1710 lcp_sprotrej(pd, nb->payload, nb->len);
1720 pbuf_free(nb);