code: private void update(int seqNo, long guessedIndex) {
  		long delta = guessedIndex - (((long) this.roc) << 16 | this.seqNum);
  
  		/* update the replay bit mask */
  		if (delta > 0) {
  			replayWindow = replayWindow << delta;
  			replayWindow |= 1;
  		} else {
  			replayWindow |= (1 << delta);
  		}
  
  		if (seqNo > seqNum) {
  			seqNum = seqNo & 0xffff;
  		}
  		if (this.guessedROC > this.roc) {
  			roc = guessedROC;
  			seqNum = seqNo & 0xffff;
  		}
  	}
docs: Update the SRTP packet index.
  
  This method is called after all checks were successful. See section 3.3.1
  in RFC3711 for detailed description.
  
  @param seqNo
  sequence number of the accepted packet
  @param guessedIndex
  guessed roc