Lines Matching refs:tlv_length
190 u_int tlv_type, tlv_length;
200 tlv_length = GET_BE_U_2(tptr + 2);
207 tlv_length);
209 if (tlv_length > ls_length) {
210 ND_PRINT("\n\t Bogus length %u > %u", tlv_length,
216 if (tlv_type == 0 || tlv_length ==0) {
220 ND_TCHECK_LEN(tptr, tlv_length);
224 if (tlv_length != 4) {
225 ND_PRINT("\n\t Bogus length %u != 4", tlv_length);
232 if (tlv_length != 1) {
233 ND_PRINT("\n\t Bogus length %u != 1", tlv_length);
242 if (tlv_length != 4) {
243 ND_PRINT("\n\t Bogus length %u != 4", tlv_length);
251 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_length))
258 if (tlv_length%4 != 0)
259 tlv_length+=4-(tlv_length%4);
260 ls_length-=tlv_length;
261 tptr+=tlv_length;
273 u_int tlv_type, tlv_length, subtlv_type, subtlv_length;
287 tlv_length = GET_BE_U_2(tptr + 2);
294 tlv_length);
296 if (tlv_length > ls_length) {
297 ND_PRINT("\n\t Bogus length %u > %u", tlv_length,
303 if (tlv_type == 0 || tlv_length ==0) {
309 while (tlv_length != 0) {
310 if (tlv_length < 4) {
312 tlv_length);
318 tlv_length-=4;
329 if (tlv_length < subtlv_length) {
331 tlv_length + 4, subtlv_length + 4);
483 if (tlv_length < subtlv_length) {
485 tlv_length + 4, subtlv_length + 4);
488 tlv_length-=subtlv_length;
495 if (tlv_length < 4) {
496 ND_PRINT("\n\t TLV length %u < 4", tlv_length);
504 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_length))
510 if (tlv_length%4 != 0)
511 tlv_length+=4-(tlv_length%4);
512 if (tlv_length > ls_length) {
513 ND_PRINT("\n\t Bogus padded length %u > %u", tlv_length,
517 ls_length-=tlv_length;
518 tptr+=tlv_length;
632 u_int tlv_type, tlv_length, rla_count, topology;
817 tlv_length = GET_BE_U_2(tptr + 2);
824 tlv_length);
826 if (tlv_length > ls_length_remaining) {
827 ND_PRINT("\n\t Bogus length %u > remaining LS length %u", tlv_length,
831 ND_TCHECK_LEN(tptr, tlv_length);
835 if (tlv_length != 4) {
836 ND_PRINT("\n\t Bogus length %u != 4", tlv_length);
844 if (!print_unknown_data(ndo, tptr, "\n\t ", tlv_length))
852 if (tlv_length % 4) {
853 tlv_length += (4 - (tlv_length % 4));
855 tptr+=tlv_length;
856 ls_length_remaining-=tlv_length;