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

get restart time from open message error

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • Bugzilla Migration
    • Bugzilla Migration
    • BGP
    • None
    • Operating System: All
      Platform: All

    • 6084

    Description

      in class GracefulCapabilityHandler method parseCapability.
      final int flagBits = (buffer.getByte(0) >> RESTART_FLAGS_SIZE);
      cb.setRestartFlags(new RestartFlags((flagBits & Byte.SIZE) != 0));

      final int timer = ((buffer.readUnsignedByte() & TIMER_TOPBITS_MASK) << RESTART_FLAGS_SIZE) + buffer.readUnsignedByte();
      cb.setRestartTime(timer);

      get restart time ,high byte value must left shift one byte length.
      in code ,only shift
      private static final int RESTART_FLAGS_SIZE = 4;

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ajayl.bro@gmail.com Ajay L
            chen.dongfang@zte.com.cn dongfang chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: