Add support for Addd Path in EVPN NLRI

This commit is contained in:
Michael Pergament 2022-08-17 13:41:52 +02:00 committed by A Wireshark GitLab Utility
parent 12bb2788f9
commit bd6c21696a
1 changed files with 8 additions and 1 deletions

View File

@ -7085,7 +7085,14 @@ decode_prefix_MP(proto_tree *tree, int hf_path_id, int hf_addr4, int hf_addr6,
break;
case SAFNUM_EVPN:
total_length = decode_evpn_nlri(tree, tvb, offset, pinfo);
/* Check for Add Path */
if (tvb_get_guint8(tvb, offset + 4 ) <= EVPN_S_PMSI_A_D_ROUTE && tvb_get_guint8(tvb, offset ) == 0) {
proto_tree_add_item(tree, hf_path_id, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
total_length = decode_evpn_nlri(tree, tvb, offset, pinfo) + 4;
} else {
total_length = decode_evpn_nlri(tree, tvb, offset, pinfo);
}
break;
default: