Closed paulmenzel closed 1 year ago
Hi @paulmenzel! The ipcalc
saga continues.
Can you please confirm if you have the -d
or -r
option on ipcalc v0.5? What distro and version?
Thanks.
See the output of dpkg
above, but it’s Debian sid/unstable, and it only has the switch -r
, and not -d
apparently. (It worked up until fetch the latest changes today.)
$ ipcalc --help
[…]
-n --nocolor Don't display ANSI color codes.
-c --color Display ANSI color codes (default).
-b --nobinary Suppress the bitwise output.
-c --class Just print bit-count-mask of given address.
-h --html Display results as HTML (not finished in this version).
-v --version Print Version.
-s --split n1 n2 n3
Split into networks of size n1, n2, n3.
-r --range Deaggregate address range.
--help Longer help text.
[…]
Ok. Apparently what should be ipcalc v0.42 actually reports itself as v0.5 for some reason which slips me (as also noted here). I had checks in place to make sure version was >=0.41 (as per issue #34) which was indeed correct, but didn't account for ipcalc's mission to drive people crazy with versions, forks and different implementations under the same name.
The initial trouble started with @odoucet's system running v0.2.x (which didn't have range deaggregation), so I'll fix it by checking if >= 0.5 instead of 0.41 - that should settle the matter for Debian-based systems, account for Redhat-based version overlapping, and hopefully mark the end of the saga :-)
Thanks for reporting!