Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-660

Next and Previous IP Address in SubnetUtils.SubnetInfo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.7
    • None

    Description

      In SubnetUtils.SubnetInfo, like we get address, netmask, lowAddress, highAddress, it would be useful to get next address and previous address as well.

      Suppose, I create a SubnetUtils as

      SubnetUtils utils = new SubnetUtils("10.10.10.34/24")
      SubnetUtils.SubnetInfo info = utils.getInfo();

      It would be useful to have getNextAddress() and getPreviousAddress()

      String nextAddress = info.getNextAddress();
      String previousAddress = info.getPreviousAddress();

      SubnetUtils.SubnetInfo nextInfo = utils.getNext().getInfo();
      SubnetUtils.SubnetInfo previousInfo = utils.getPrevious().getInfo();

       

      GitHub Pull Request Link:
      https://github.com/apache/commons-net/pull/32

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nagabhushansn95 Nagabhushan S N
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Time Spent - 20m Remaining Estimate - 1h 40m
                  1h 40m
                  Logged:
                  Time Spent - 20m Remaining Estimate - 1h 40m
                  20m