/* Add a metric value to the address if a corresponding TLV exists in the message  */
static void add_temp_metric_value(nhdp_addr_t *address)
/* Add a metric value to the address if a corresponding TLV exists in the message  */
static void add_temp_metric_value(nhdp_addr_t *address)
{
    if (_nhdp_addr_tlvs[RFC5444_ADDRTLV_LINK_METRIC].tlv) {
        uint16_t metric_enc = *((uint16_t*)_nhdp_addr_tlvs[RFC5444_ADDRTLV_LINK_METRIC]
                                                           .tlv->single_value);
        if (metric_enc & (NHDP_KD_LM_INC | NHDP_KD_NM_INC)) {
            address->tmp_metric_val = metric_enc;
        }
    }
}