Lines Matching refs:protocol_length
1052 guint8 protocol_length; in dissect_address_tlv() local
1068 protocol_length = tvb_get_guint8(tvb, offset); in dissect_address_tlv()
1073 if (length < protocol_length) { in dissect_address_tlv()
1081 if ((protocol_type == PROTO_TYPE_NLPID) && (protocol_length == 1)) { in dissect_address_tlv()
1083 …ree_add_bytes_format_value(address_tree, hf_cdp_protocol, tvb, offset, protocol_length, NULL, "%s", in dissect_address_tlv()
1085 …} else if ((protocol_type == PROTO_TYPE_IEEE_802_2) && (protocol_length == 8) && (tvb_get_ntoh48(t… in dissect_address_tlv()
1087 …ree_add_bytes_format_value(address_tree, hf_cdp_protocol, tvb, offset, protocol_length, NULL, "%s", in dissect_address_tlv()
1091 proto_tree_add_item(address_tree, hf_cdp_protocol, tvb, offset, protocol_length, ENC_NA); in dissect_address_tlv()
1093 offset += protocol_length; in dissect_address_tlv()
1094 length -= protocol_length; in dissect_address_tlv()
1113 if ((protocol_type == PROTO_TYPE_NLPID) && (protocol_length == 1)) { in dissect_address_tlv()
1128 if ((protocol_type == PROTO_TYPE_IEEE_802_2) && (protocol_length == 8) && (etypeid > 0)) { in dissect_address_tlv()
1155 return 2 + protocol_length + 2 + address_length; in dissect_address_tlv()