Class SidLabelIndexParser

  • public final class SidLabelIndexParser
    extends Object
    • Method Detail

      • serializeSidValue

        public static io.netty.buffer.ByteBuf serializeSidValue​(SidLabelIndex tlv)
      • parseSidLabelIndexByFlags

        public static SidLabelIndex parseSidLabelIndexByFlags​(SidLabelIndexParser.Size length,
                                                              io.netty.buffer.ByteBuf buffer,
                                                              boolean isValue,
                                                              boolean isLocal)
        Parses SID/Label/Index value into appropriate type based on V-Flag and L-Flag values. This method is required as some device-side implementations incorrectly encode SID/Label/Index value using wrong type e.g. Label type to encode an Index value (V-Flag=false, L-Flag=false).
        length - length of SID/Label/Index value
        buffer - buffer containing SID/Label/Index value
        isValue - V-Flag value
        isLocal - L-Flag value
        SID/Label/Index value parsed into the appropriate type