4 TCHECK(*ptr); /* Flags & Length */
5 len = EXTRACT_16BITS(ptr) & L2TP_AVP_HDR_LEN_MASK;
7 - /* If it is not long enough to decode the entire AVP, we'll
9 + /* If it is not long enough to contain the header, we'll give up. */
13 + /* If it goes past the end of the remaining length of the packet,
15 + if (len > (u_int)length)
18 + /* If it goes past the end of the remaining length of the captured
19 + data, we'll give up. */
22 /* After this point, no need to worry about truncation */