Home
last modified time | relevance | path

Searched refs:tlv_len (Results 1 – 13 of 13) sorted by relevance

/external/tcpdump/
Dprint-lldp.c640 lldp_private_8021_print(const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument
647 if (tlv_len < 4) { in lldp_private_8021_print()
658 if (tlv_len < 6) { in lldp_private_8021_print()
665 if (tlv_len < 7) { in lldp_private_8021_print()
674 if (tlv_len < 6) { in lldp_private_8021_print()
679 if (tlv_len < 7) { in lldp_private_8021_print()
683 if (tlv_len < 7+sublen) { in lldp_private_8021_print()
690 if (tlv_len < 5) { in lldp_private_8021_print()
694 if (tlv_len < 5+sublen) { in lldp_private_8021_print()
701 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CONGESTION_NOTIFICATION_LENGTH){ in lldp_private_8021_print()
[all …]
Dprint-vtp.c126 int type, len, tlv_len, tlv_value; in vtp_print() local
272 tlv_len = *(tptr+1); in vtp_print()
281 if (type == 0 || tlv_len == 0) { in vtp_print()
285 if (!TTEST2(*tptr, tlv_len*2 +2)) in vtp_print()
330 print_unknown_data(tptr, "\n\t\t ", 2 + tlv_len*2); in vtp_print()
333 len -= 2 + tlv_len*2; in vtp_print()
334 tptr += 2 + tlv_len*2; in vtp_print()
Dprint-slow.c344 u_int tlv_len, tlv_tlen; in slow_marker_lacp_print() local
357 tlv_len = tlv_header->length; in slow_marker_lacp_print()
364 tlv_len); in slow_marker_lacp_print()
366 if ((tlv_len < sizeof(struct tlv_header_t) || in slow_marker_lacp_print()
367 tlv_len > tlen) && in slow_marker_lacp_print()
376 tlv_tlen=tlv_len-sizeof(struct tlv_header_t); in slow_marker_lacp_print()
379 TCHECK2(*tptr, tlv_len); in slow_marker_lacp_print()
423 if (tlv_len == 0) { in slow_marker_lacp_print()
424 tlv_len = sizeof(tlv_ptr.lacp_marker_tlv_terminator->pad) + in slow_marker_lacp_print()
428 printf(" (=%u)",tlv_len); in slow_marker_lacp_print()
[all …]
Dprint-ldp.c253 u_short tlv_type,tlv_len,tlv_tlen,af,ft_flags; in ldp_tlv_print() local
260 tlv_len=EXTRACT_16BITS(ldp_tlv_header->length); in ldp_tlv_print()
261 tlv_tlen=tlv_len; in ldp_tlv_print()
270 tlv_len, in ldp_tlv_print()
535 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
543 return(tlv_len+4); /* Type & Length fields not included */ in ldp_tlv_print()
Dprint-juniper.c1087 juniper_read_tlv_value(const u_char *p, u_int tlv_type, u_int tlv_len) { in juniper_read_tlv_value() argument
1093 switch (tlv_len) { in juniper_read_tlv_value()
1112 switch (tlv_len) { in juniper_read_tlv_value()
1138 u_int8_t tlv_type,tlv_len; in juniper_parse_header() local
1193 tlv_len = *(tptr++); in juniper_parse_header()
1197 if (tlv_type == 0 || tlv_len == 0) in juniper_parse_header()
1204 tlv_len); in juniper_parse_header()
1206 tlv_value = juniper_read_tlv_value(tptr, tlv_type, tlv_len); in juniper_parse_header()
1240 tptr+=tlv_len; in juniper_parse_header()
1241 jnx_ext_len -= tlv_len+JUNIPER_EXT_TLV_OVERHEAD; in juniper_parse_header()
Dprint-isoclns.c2093 u_int8_t pdu_type, max_area, id_length, tlv_type, tlv_len, tmp, alen, lan_alen, prefix_len; in isis_print() local
2448 tlv_len = *pptr++; in isis_print()
2449 tmp =tlv_len; /* copy temporary len & pointer to packet data */ in isis_print()
2452 if (tlv_len > packet_len) { in isis_print()
2462 tlv_len); in isis_print()
2464 if (tlv_len == 0) /* something is malformed */ in isis_print()
2588 if (!isis_print_tlv_ip_reach(pptr, "\n\t ", tlv_len)) in isis_print()
2671 for(i=1;i<tlv_len;i++) { in isis_print()
2678 for(i=1;i<tlv_len;i++) { in isis_print()
2683 if (tlv_len != ISIS_SUBTLV_AUTH_MD5_LEN+1) in isis_print()
[all …]
Dprint-bgp.c960 int plen,tlen,strlen,tlv_type,tlv_len,ttlv_len; in decode_labeled_vpn_l2() local
1004 tlv_len=EXTRACT_16BITS(pptr); in decode_labeled_vpn_l2()
1005 ttlv_len=tlv_len; in decode_labeled_vpn_l2()
1013 tlv_len); in decode_labeled_vpn_l2()
1030 tlv_len); in decode_labeled_vpn_l2()
1035 tlen-=(tlv_len<<3); /* the tlv-length is expressed in bits so lets shift it right */ in decode_labeled_vpn_l2()
/external/kernel-headers/original/uapi/linux/
Dtipc_config.h251 __be16 tlv_len; /* TLV length (descriptor + value) */ member
274 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
286 int tlv_len; in TLV_SET() local
288 tlv_len = TLV_LENGTH(len); in TLV_SET()
291 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
293 memcpy(TLV_DATA(tlv_ptr), data, tlv_len); in TLV_SET()
331 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_peap.c619 int tlv_type, mandatory, tlv_len; in eap_peap_process_phase2_tlv() local
633 tlv_len = ((int) pos[2] << 8) | pos[3]; in eap_peap_process_phase2_tlv()
636 if ((size_t) tlv_len > left) { in eap_peap_process_phase2_tlv()
638 "(tlv_len=%d left=%lu)", tlv_len, in eap_peap_process_phase2_tlv()
646 result_tlv_len = tlv_len; in eap_peap_process_phase2_tlv()
650 crypto_tlv_len = tlv_len; in eap_peap_process_phase2_tlv()
664 pos += tlv_len; in eap_peap_process_phase2_tlv()
665 left -= tlv_len; in eap_peap_process_phase2_tlv()
737 int tlv_type, mandatory, tlv_len, vtlv_len; in eap_peap_process_phase2_soh() local
754 tlv_len = ((int) pos[2] << 8) | pos[3]; in eap_peap_process_phase2_soh()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_peap.c470 size_t left, tlv_len; in eap_tlv_process() local
485 tlv_len = WPA_GET_BE16(pos); in eap_tlv_process()
488 if (tlv_len > left) { in eap_tlv_process()
491 (unsigned long) tlv_len, in eap_tlv_process()
498 result_tlv_len = tlv_len; in eap_tlv_process()
502 crypto_tlv_len = tlv_len; in eap_tlv_process()
519 pos += tlv_len; in eap_tlv_process()
520 left -= tlv_len; in eap_tlv_process()
Dtncc.c1172 u8 *tlv_len, *tlv_len2, *outer_len, *inner_len, *ssoh_len, *end; in tncc_build_soh() local
1188 tlv_len = wpabuf_put(buf, 2); /* Length */ in tncc_build_soh()
1273 WPA_PUT_BE16(tlv_len, end - tlv_len - 2); in tncc_build_soh()
Deap_fast.c1399 size_t tlv_len, olen; in eap_fast_use_pac_opaque() local
1403 tlv_len = sizeof(*ehdr) + olen; in eap_fast_use_pac_opaque()
1404 tlv = os_malloc(tlv_len); in eap_fast_use_pac_opaque()
1414 tlv, tlv_len) < 0) { in eap_fast_use_pac_opaque()
/external/libnfc-nci/src/nfa/int/
Dnfa_dta_int.h111 UINT8 tlv_len; member