Lines Matching refs:avplen
488 u16_t avplen, avpflags, vendorid, attributetype, messagetype=0;
540 avplen = avpflags & PPPOL2TP_AVPHEADERFLAG_LENGTHMASK;
541 /* printf("AVPLEN = %d\n", avplen); */
542 if (p->len < avplen || avplen < sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype)) {
547 avplen -= sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype);
551 if (attributetype != 0 || vendorid != 0 || avplen != sizeof(messagetype) ) {
601 if (avplen != sizeof(l2tp->source_tunnel_id) ) {
610 if (avplen == 0) {
625 lwip_md5_update(&md5_ctx, inp, avplen);
631 if (avplen != PPPOL2TP_AVPTYPE_CHALLENGERESPONSE_SIZE) {
659 if (avplen != sizeof(l2tp->source_session_id) ) {
675 INCPTR(avplen, inp);
677 /* printf("AVP Found, vendor=%d, attribute=%d, len=%d\n", vendorid, attributetype, avplen); */
679 if (pbuf_remove_header(p, avplen + sizeof(avpflags) + sizeof(vendorid) + sizeof(attributetype)) != 0) {