﻿namespace BmpListener.Bgp
{
    internal class PathAttributeMultiExitDisc : PathAttribute
    {
        public int? Metric { get; private set; }

        public override void Decode(byte[] data, int offset)
        {
            //Array.Reverse(data, offset, 0);
            //Metric = BitConverter.ToInt32(data, 0);
        }
    }
}
﻿using BmpListener.Utilities;

namespace BmpListener.Bgp
{
    internal class PathAttributeMultiExitDisc : PathAttribute
    {
        public uint Metric { get; private set; }

        public override void Decode(byte[] data, int offset)
        {
            Metric = EndianBitConverter.Big.ToUInt32(data, offset);
        }
    }
}
Add multi-exit discriminator (MED) support
Add multi-exit discriminator (MED) support
