cidr

Simplifies IPv4/IPv6 CIDR network prefix management with counting, overlap checking, explanation, and subdivision.

MIT License

Downloads
15
Stars
177
Committers
5

Bot releases are visible (Hide)

cidr - v2.2.0 Latest Release

Published by bschaatsbergen 3 months ago

⚠️ This release features output changes to how we've presented address counts in cidr explain. "Host Addresses" has been changed to "Addresses" to include all addresses (including base and broadcast/anycast) and the host address count is now part of the "Usable Address Range", in parentheses.

Changelog

  • 098ae88 chore(deps): bump github.com/spf13/cobra from 1.8.0 to 1.8.1
  • 225d570 chore: add test to default
  • 5c3febd chore: fix typo
  • ae71189 feat: separate host address count from address count
cidr - v2.1.1

Published by bschaatsbergen 4 months ago

Changelog

  • e8714c6 chore: pinv1.26.2 before we upgrade to goreleaser ~> v2
cidr - v2.0.0

Published by bschaatsbergen 7 months ago

Changelog

  • bdbe35c chore(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0
  • c8980fd chore: Changed GoReleaser --rm-dist to --clean
  • 3ecd486 chore: don't remove the network address and broadcast address
  • cb39a58 chore: fix tests
  • dfb2580 feat: add copywrite
  • 0709b06 feat: add explain example
cidr - v1.4.0

Published by bschaatsbergen 9 months ago

Changelog

  • e960d55 chore: add explain subcommand to README.md
  • 76c592c chore: added PR template
  • 856f8fb chore: bumped actions/labeler to v5
  • 219488b chore: fix typo
  • b42d4d1 chore: fix wording in explain section
  • dfbaacf chore: improve comments
  • 57ed9c1 chore: improve the netmask function by separating it
  • e49c1fa chore: move explain to the top
  • 0c229dc chore: rename Address Count to Host Addresses
  • fdb72a8 fix: Fixed help text for explain command
cidr - v1.3.0

Published by bschaatsbergen 11 months ago

Changelog

  • 1252e93 chore: add 2 helper functions to determine if a network is an IPv4 or IPv6 network
  • 3d2a05a chore: add GetFirstUsableIPAddress, GetPrefixLength and errors
  • 44b65d3 chore: add GetLastUsableIPAddress
  • f9dce3a chore: add a length indicator to the prefix length
  • 086a911 chore: add read permissions and set cache to false
  • cb58113 chore: add tests
  • 1e88c11 chore: bump checkout to v4
  • 37fc787 chore: fix unnecessary conversion
  • f647fa6 chore: handle IPv4 CIDR ranges with large prefixes having no broadcast addresses
  • c1647fc chore: ignore goconst on explain func
  • ae631a3 chore: improve the explainCmd by using a networkDetails struct
  • 660fa48 chore: label anything touch _test.go files
  • 5bfb6a7 chore: move comment above if logic
  • b100164 chore: produce a human readable number and print coloured network details
  • d937b94 chore: rename file and change variable names to more transparent and clear in readability
  • 6e0614e chore: skip-pkg-cache: true and skip-build-cache: true
  • f4eaa78 feat: implement GetNetMask, GetBaseAddress and GetBroadcastAddress
  • 98fe336 feat: init explain subcommand
cidr - v1.2.1

Published by bschaatsbergen 11 months ago

Changelog

  • 6fc3a7a chore: add couple other linters to golangci
  • 164c734 chore: can be a 1-liner
  • 675d372 chore: document core functions and rename to GetAddressCount
  • dab15f7 chore: remove redundant comment
  • bf3946c chore: remove trailing newline
  • 2a928e1 feat: add golangci-lint
cidr - v1.2.0

Published by bschaatsbergen 11 months ago

Changelog

  • 6f3415c Added simple test
  • c116c71 chore: remove downloads badge
  • 6ef797b expanded test criteria
  • 46f5207 feat: set usage template headers to blue
cidr - v1.1.0

Published by bschaatsbergen 11 months ago

Changelog

  • 38bd3c8 Bump github.com/spf13/cobra from 1.5.0 to 1.8.0
  • ad1e4fe Bump github.com/spf13/cobra from 1.5.0 to 1.8.0
  • eb0742c Bump github.com/stretchr/testify from 1.8.0 to 1.8.4
  • 5ff1fdd Update labeler.yaml
  • 9f40992 chore: add a downloads badge
  • 993b217 chore: add binary cidr to .gitignore
  • 08e7153 chore: align description with description of cidr in homebrew-core
  • a8c7c7f chore: bump to go1.21.4
  • 743932c chore: improve installation instructions
  • 3ab6af4 chore: move cidr in .gitignore
  • 02d3fba chore: rebase and run go mod tidy
  • cfd1f49 chore: rename workflow to 'CI'
  • d9c1cbd chore: set configuration-path
  • 51e64cf chore: set configuration-path
  • 860c582 chore: update LICENSE
  • f9b5ed8 chore: update go checksum
  • 783ed81 chore: update install through homebrew-core
  • a47bead chore: use setup-go and pin to go.mod
  • dc34ef6 feat: add ability to label pull requests
  • 9d9bb27 feat: creat a triage workflow
  • bd3721a feat: create Dependabot.yaml
cidr - v1.0.1

Published by bschaatsbergen about 2 years ago

Changelog

  • 18ec675 Fix mistypes in README
  • 6ce3ec4 Remove ParseIP in favor of net pkg
  • 0ff1284 Remove duplicate count from cidr count example
  • a845ba3 Update core_test.go
  • e6df04d add address count and overlap tests
  • 8ab893d replace ParseIP with net pkg
cidr - v1.0.0

Published by bschaatsbergen about 2 years ago

Changelog

  • ab06ab1 Remove downloads badge
  • 440e499 Update README.md
  • 9a7ca39 feat: add arm64 build
  • 9a959b5 feat: remember the network and broadcast address
cidr - v0.1.4

Published by bschaatsbergen about 2 years ago

Changelog

  • 04560ae Add various shield.io badges
  • 7a01da6 fix goreleaser description
cidr - v0.1.3

Published by bschaatsbergen about 2 years ago

Changelog

  • ce085d9 Add examples
  • 091cf47 Delete cidr binary
cidr - v0.1.2

Published by bschaatsbergen about 2 years ago

Changelog

  • 562543f Improve overlaps logging
  • c489dce Improve logging on contains
  • d6a6870 Remove the --out flag as it's currently not in use
  • 8993bd7 improve count logging
  • 2b9783f replace logrus with fmt
cidr - v0.1.1

Published by bschaatsbergen about 2 years ago

Changelog

  • f4e8c26 Change cidr description
  • 4e5e10e Change action name to Release
  • 70eb63a Change release badge to match default branch
  • a0f9042 Fix binary href in readme
  • ee36806 Update README.md
  • 2459f91 Update the description of the subcommands to be more precise
cidr - v0.1.0

Published by bschaatsbergen about 2 years ago

Changelog

  • aca2c33 Add codesql, stale and go workflow
  • ca2c70e Add flagstore and utils
  • b277f42 Add goreleaser
  • ca71362 Add output flag to write host addresses
  • 216b7ff Add release badge
  • 74b7f9c Bump CodeQL to v2 as per deprecation warning
  • 7ce5765 Bump go version to 1.19.x
  • ae9831a Create count.go
  • d19dc6b Create overlap.go
  • 2d25fbe Disable cobra auto complete
  • a195ee4 Implement count logic and rearrange everything under a pkg dir
  • 3a5f4ea Implement new subcommand - contains
  • cfafcee Implement overlaps
  • 340a329 Initial Cobra gen
  • c80a62a Initial commit
  • 02518a7 Make params more clear
  • 13a25db Remove OutputFile
  • 9fe324c Remove contains function and touch up ConfigureLogLevel doc
  • b89f345 Restrict contain args to only 2
  • 5ec1c4c Restrict count args to only 1
  • 29f6696 Throw a more generic error log if the cidr range isn't provided nor valid
  • 2d4347a Tidy up count param and var naming
  • 9277b85 Tidy up naming in contains subcommand
  • a9eb4f8 Tidy up overlaps param and var naming
  • ce4c7e9 Trigger CodeQL on push and pr
  • 9727a2e Update README.md
  • 18de31e Use semver version tags to release
  • 6f7a1d1 remove cidr range from count output
  • f991a60 remove whiteline and rename main to `count