Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-752

bgp linkstate parser should skip unknown type‘s length and value field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • BGP
    • None

      / bgp/linkstate/src/main/java/org/opendaylight/protocol/bgp/linkstate/spi/pojo/SimpleNlriTypeRegistry.java

       

          private static <T> T parseTlv(final ByteBuf buffer, final LinkstateTlvParser<T> parser) {
              if (parser == null)

      {             return null;         }

              Preconditions.checkArgument(buffer != null && buffer.isReadable());
              final int length = buffer.readUnsignedShort();
              return parser.parseTlvBody(buffer.readSlice(length));
          }

            Unassigned Unassigned
            eastabout chen dongfang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: