hath.git
2 years agomakefile: remove "hscolour" from the docs build. master
Michael Orlitzky [Mon, 4 Mar 2019 03:10:40 +0000 (22:10 -0500)]
makefile: remove "hscolour" from the docs build.

Apparently this is not needed any longer, and I'm getting warned that
it's deprecated.

2 years agohath.cabal: bump to version 0.5.0.
Michael Orlitzky [Mon, 4 Mar 2019 03:07:06 +0000 (22:07 -0500)]
hath.cabal: bump to version 0.5.0.

2 years agohath.cabal: simplify GHC flags used in the shelltest suite.
Michael Orlitzky [Mon, 4 Mar 2019 03:06:12 +0000 (22:06 -0500)]
hath.cabal: simplify GHC flags used in the shelltest suite.

2 years agohath.cabal: drop superfluous build-depends for the shelltest suite.
Michael Orlitzky [Mon, 4 Mar 2019 03:05:41 +0000 (22:05 -0500)]
hath.cabal: drop superfluous build-depends for the shelltest suite.

2 years agohath.cabal: add other-modules for the tasty test suite.
Michael Orlitzky [Mon, 4 Mar 2019 03:03:39 +0000 (22:03 -0500)]
hath.cabal: add other-modules for the tasty test suite.

2 years agotest/ShellTests.hs: add an explicit export list.
Michael Orlitzky [Mon, 4 Mar 2019 03:03:12 +0000 (22:03 -0500)]
test/ShellTests.hs: add an explicit export list.

2 years agosrc/Main.hs: add an explicit export list.
Michael Orlitzky [Mon, 4 Mar 2019 02:55:38 +0000 (21:55 -0500)]
src/Main.hs: add an explicit export list.

2 years agohath.cabal: add Paths_hath to other-modules to silence a warning.
Michael Orlitzky [Mon, 4 Mar 2019 02:53:47 +0000 (21:53 -0500)]
hath.cabal: add Paths_hath to other-modules to silence a warning.

2 years agosrc/IPv4Address.hs: rename a variable.
Michael Orlitzky [Mon, 4 Mar 2019 02:47:38 +0000 (21:47 -0500)]
src/IPv4Address.hs: rename a variable.

2 years agosrc/IPv4Address.hs: fix the inverse toEnum/fromEnum property on x86.
Michael Orlitzky [Mon, 4 Mar 2019 02:26:31 +0000 (21:26 -0500)]
src/IPv4Address.hs: fix the inverse toEnum/fromEnum property on x86.

The second half of the fix in the previous commit turned out to be in
the test itself. The "smallness test" that I was using was to compare
against the number (2^32 - 1), which works great if said number is
interpreted as a 64-bit integer. However on x86 systems, it's a 32-bit
integer, namely negative one! Oops.

This commit splits that test into two; one that tests randomly-generated
Int32s, and one that tests randomly-generated Int64s. Hopefully this
ensures that no similar problems with the machine Int type creep in.

2 years agosrc/IPv4Address.hs: convert Int to Word32 before doing math in toEnum.
Michael Orlitzky [Sun, 3 Mar 2019 15:43:39 +0000 (10:43 -0500)]
src/IPv4Address.hs: convert Int to Word32 before doing math in toEnum.

On x86, the machine Int type isn't big enough to hold half of the
IPv4 address space. Big addresses get converted into negative numbers,
and all hell breaks loose. Unfortunately, the Int type is baked into
the Enum typeclass, so we can't avoid it entirely. We can however
cast to Word32 before doing any math.

This commit updates the toEnum implementation for IPv4Address to
convert back and forth between Word32, fixing part of this bug.
However, the inverse property of toEnum and fromEnum is still
failing for IPv4Address.

Thanks to Thomas Deutschmann <whissi@gentoo.org> for finding the bug.

4 years agoBump to v0.4.2 in the cabal file for the base dependency change. 0.4.2
Michael Orlitzky [Fri, 21 Apr 2017 12:23:54 +0000 (08:23 -0400)]
Bump to v0.4.2 in the cabal file for the base dependency change.

4 years agoRequire base >= 4.9 to pull in ghc-8.x.
Michael Orlitzky [Fri, 21 Apr 2017 12:13:45 +0000 (08:13 -0400)]
Require base >= 4.9 to pull in ghc-8.x.

A newer version of GHC is needed since we stopped deriving Typeable
and began to use the new -Wfoo style for warnings. See commits
fb27e58 and 3f8eddf.

4 years agoRemove MissingH from the shelltest dependencies and bump to v0.4.1. 0.4.1
Michael Orlitzky [Thu, 20 Apr 2017 22:55:51 +0000 (18:55 -0400)]
Remove MissingH from the shelltest dependencies and bump to v0.4.1.

4 years agoAdd a --sort flag to hath and document/test why it was needed after all. 0.4.0
Michael Orlitzky [Tue, 18 Apr 2017 15:50:01 +0000 (11:50 -0400)]
Add a --sort flag to hath and document/test why it was needed after all.

4 years agoUndo my totally-wrong man page example for pipe-to-sort.
Michael Orlitzky [Tue, 18 Apr 2017 15:42:22 +0000 (11:42 -0400)]
Undo my totally-wrong man page example for pipe-to-sort.

4 years agoBump to version 0.4.0 in hath.cabal.
Michael Orlitzky [Tue, 18 Apr 2017 15:09:12 +0000 (11:09 -0400)]
Bump to version 0.4.0 in hath.cabal.

4 years agoDocument a pipe-to-sort and justify the lack of a special CIDR sort.
Michael Orlitzky [Tue, 18 Apr 2017 15:07:57 +0000 (11:07 -0400)]
Document a pipe-to-sort and justify the lack of a special CIDR sort.

4 years agoAdd a bunch of tests for our weird CIDR order.
Michael Orlitzky [Mon, 17 Apr 2017 14:41:03 +0000 (10:41 -0400)]
Add a bunch of tests for our weird CIDR order.

4 years agoEnsure sane ordering of CIDRs with equal masks with a new property.
Michael Orlitzky [Mon, 17 Apr 2017 13:52:29 +0000 (09:52 -0400)]
Ensure sane ordering of CIDRs with equal masks with a new property.

4 years agoAdd an antisymmetry property check for the Cidr Ord instance.
Michael Orlitzky [Mon, 17 Apr 2017 12:56:52 +0000 (08:56 -0400)]
Add an antisymmetry property check for the Cidr Ord instance.

4 years agoAdd reflexive/transitive property tests for the Cidr Ord instance.
Michael Orlitzky [Mon, 17 Apr 2017 12:19:25 +0000 (08:19 -0400)]
Add reflexive/transitive property tests for the Cidr Ord instance.

4 years agoAdd Ord instance tests for IPv4Address.
Michael Orlitzky [Mon, 17 Apr 2017 12:02:28 +0000 (08:02 -0400)]
Add Ord instance tests for IPv4Address.

4 years agoAdd an Ord instance for Cidr and use it to implement Eq.
Michael Orlitzky [Mon, 17 Apr 2017 02:40:46 +0000 (22:40 -0400)]
Add an Ord instance for Cidr and use it to implement Eq.

4 years agoReplace the "equivalent" function with a "normalize"-based comparison.
Michael Orlitzky [Mon, 17 Apr 2017 02:30:06 +0000 (22:30 -0400)]
Replace the "equivalent" function with a "normalize"-based comparison.

4 years agoDocument and test the new --normalize flag.
Michael Orlitzky [Mon, 17 Apr 2017 02:14:03 +0000 (22:14 -0400)]
Document and test the new --normalize flag.

4 years agoAdd a new --normalize command-line flag to normalize CIDR output.
Michael Orlitzky [Mon, 17 Apr 2017 02:13:34 +0000 (22:13 -0400)]
Add a new --normalize command-line flag to normalize CIDR output.

4 years agoAdd a new "normalize" function to the Cidr module.
Michael Orlitzky [Mon, 17 Apr 2017 01:56:51 +0000 (21:56 -0400)]
Add a new "normalize" function to the Cidr module.

There are several different ways to represent the same Cidr, as their
Eq instance shows. The canonical way to represent a given CIDR is with
its host bits zeroed out; for example, "127.0.0.0/8" instead of
"127.0.0.1/8". This commit adds a normalization function to the Cidr
module.

It should be possible to use the new function to clean up the code
some, and to allow the user to specify normalized output for the
"reduced" mode.

4 years agoUse "words" instead of "splitWs" and drop MissingH dependency.
Michael Orlitzky [Fri, 14 Apr 2017 04:28:44 +0000 (00:28 -0400)]
Use "words" instead of "splitWs" and drop MissingH dependency.

4 years agoDrop ghc-prof-options from the cabal file.
Michael Orlitzky [Fri, 14 Apr 2017 04:15:23 +0000 (00:15 -0400)]
Drop ghc-prof-options from the cabal file.

Cabal is complaining about these, and I totally don't care, so let's
get rid of them.

4 years agoUse the derived instance for Ord and add a test case.
Michael Orlitzky [Fri, 14 Apr 2017 04:00:17 +0000 (00:00 -0400)]
Use the derived instance for Ord and add a test case.

There was a bug in my implementation of Ord for Octets that was
pointed out by Michael McKibben. As a result, the octets corresponding
to (for example) 2 and 4 would compare incorrectly. This is fixed by
simply adopting the derived Ord instance for Octets. Why didn't I do
that in the first place?

With the bug fixed, I've added a QuickCheck property to ensure that
the Ord instances for Octet and Int agree when the Int is between 0
and 255.

4 years agoRename the "octet_from_int" test; that function is gone.
Michael Orlitzky [Fri, 14 Apr 2017 03:59:57 +0000 (23:59 -0400)]
Rename the "octet_from_int" test; that function is gone.

4 years agoUpdate project URLs.
Michael Orlitzky [Tue, 8 Nov 2016 03:33:45 +0000 (22:33 -0500)]
Update project URLs.

5 years agoAdd more warnings and use the GHC-8.x -Wfoo style.
Michael Orlitzky [Wed, 6 Jul 2016 21:34:12 +0000 (17:34 -0400)]
Add more warnings and use the GHC-8.x -Wfoo style.

5 years agoAdd full lists for every existing import.
Michael Orlitzky [Wed, 6 Jul 2016 21:33:43 +0000 (17:33 -0400)]
Add full lists for every existing import.

5 years agoDon't derive Typeable (GHC 8+).
Michael Orlitzky [Wed, 6 Jul 2016 21:20:58 +0000 (17:20 -0400)]
Don't derive Typeable (GHC 8+).

5 years agoAdd a type signature to a local function definition.
Michael Orlitzky [Wed, 6 Jul 2016 21:20:17 +0000 (17:20 -0400)]
Add a type signature to a local function definition.

5 years agoBump to v0.3.1 in the cabal file. 0.3.1
Michael Orlitzky [Wed, 6 Jul 2016 20:45:37 +0000 (16:45 -0400)]
Bump to v0.3.1 in the cabal file.

5 years agoAdd type signatures to fix monomorphism restriction warnings (GHC 8).
Michael Orlitzky [Wed, 6 Jul 2016 19:58:06 +0000 (15:58 -0400)]
Add type signatures to fix monomorphism restriction warnings (GHC 8).

5 years agoRemove the "reversed" mode -- do one thing and do it well and all that. 0.3.0
Michael Orlitzky [Thu, 12 Nov 2015 13:14:24 +0000 (08:14 -0500)]
Remove the "reversed" mode -- do one thing and do it well and all that.
Remove the old README.
Switch license from GPL-3 to AGPL-3.
Add a reverse lookup example (using dig) to the man page.

6 years agoBump cabal version, add homepage, and use sh-compatible examples.
Michael Orlitzky [Sat, 4 Apr 2015 20:02:32 +0000 (16:02 -0400)]
Bump cabal version, add homepage, and use sh-compatible examples.

6 years agoBulletproof the test suite and examples; version bump the cabal file. 0.2.3
Michael Orlitzky [Sun, 22 Feb 2015 03:28:33 +0000 (22:28 -0500)]
Bulletproof the test suite and examples; version bump the cabal file.

The examples in the man page used the "<<<" syntax which is specific
to bash. Now "echo 'foo' | hath ..." is used, and that should work in
any shell. The shelltest suite was updated to use the same.

The two ShellTests(Net) modules were also updated to run the
shelltests with an empty environment. This allowed the --color=never
argument to be removed from the tests themselves, since $GREP_OPTIONS
can't be populated.

7 years agoLoosen all dependencies eternally and bump to v0.2.2. 0.2.2
Michael Orlitzky [Tue, 23 Sep 2014 01:22:18 +0000 (21:22 -0400)]
Loosen all dependencies eternally and bump to v0.2.2.

7 years agoBump version to 0.2.1.
Michael Orlitzky [Sat, 24 May 2014 16:57:55 +0000 (12:57 -0400)]
Bump version to 0.2.1.
Update dependencies for ghc-7.8.
Require a newer tasty-quickcheck that re-exports Gen.
Use lookupRDNS from newer versions of dns instead of a custom implementation.
Fix deprecation warnings in shelltests.

7 years agoAdd a new TODO item.
Michael Orlitzky [Sat, 24 May 2014 16:14:00 +0000 (12:14 -0400)]
Add a new TODO item.

7 years agoClean up the makefile, and set the version to 0.2.0 since our deps changed. 0.2.0
Michael Orlitzky [Mon, 12 May 2014 16:14:42 +0000 (12:14 -0400)]
Clean up the makefile, and set the version to 0.2.0 since our deps changed.

7 years agoRemove the empty TODO document.
Michael Orlitzky [Mon, 12 May 2014 15:55:25 +0000 (11:55 -0400)]
Remove the empty TODO document.

7 years agoSwitch from test-framework to tasty.
Michael Orlitzky [Mon, 12 May 2014 08:13:31 +0000 (04:13 -0400)]
Switch from test-framework to tasty.
Bump version to 0.1.3.

8 years agoList regex alternates in reverse order to avoid matching single digits before the...
Michael Orlitzky [Wed, 16 Oct 2013 14:51:44 +0000 (10:51 -0400)]
List regex alternates in reverse order to avoid matching single digits before the entire octet.
Add a test for the bug fixed by the code change.
Update existing tests and documentation for the new output.

8 years agoBump to version 0.1.1 since 0.1.0 was released without tests (thanks Cabal!). 0.1.1
Michael Orlitzky [Tue, 15 Oct 2013 01:32:10 +0000 (21:32 -0400)]
Bump to version 0.1.1 since 0.1.0 was released without tests (thanks Cabal!).

8 years agoAdd shelltestrunner *.test files to extra-source-files.
Michael Orlitzky [Tue, 15 Oct 2013 01:30:51 +0000 (21:30 -0400)]
Add shelltestrunner *.test files to extra-source-files.

8 years agoAdd missing shell ("$") prompts in examples.
Michael Orlitzky [Mon, 14 Oct 2013 19:33:20 +0000 (15:33 -0400)]
Add missing shell ("$") prompts in examples.

8 years agoSet version to 0.1.0 instead of 0.0.6 due to "-i" flag removal.
Michael Orlitzky [Mon, 14 Oct 2013 19:30:13 +0000 (15:30 -0400)]
Set version to 0.1.0 instead of 0.0.6 due to "-i" flag removal.
Update the description in the cabal file.

8 years agoRemove mention of removed "-i" parameter.
Michael Orlitzky [Mon, 14 Oct 2013 19:04:14 +0000 (15:04 -0400)]
Remove mention of removed "-i" parameter.

8 years agoAdd tests for the --barriers option.
Michael Orlitzky [Mon, 14 Oct 2013 15:19:38 +0000 (11:19 -0400)]
Add tests for the --barriers option.
Update the manpage for 0.0.6.

8 years agoRewrite command-line parsing to use cmdargs.
Michael Orlitzky [Mon, 14 Oct 2013 02:11:09 +0000 (22:11 -0400)]
Rewrite command-line parsing to use cmdargs.
Make the regexp barriers optional via --barriers.
Bump to version 0.0.6.
Add two new test suites (shelltestrunner) for Cabal.

8 years agoRename shelltestrunner files and add two haskell runners which just run 'shelltest...
Michael Orlitzky [Mon, 14 Oct 2013 02:10:04 +0000 (22:10 -0400)]
Rename shelltestrunner files and add two haskell runners which just run 'shelltest' via system().

8 years agoFix an incorrect example in the man page.
Michael Orlitzky [Mon, 14 Oct 2013 01:02:00 +0000 (21:02 -0400)]
Fix an incorrect example in the man page.
Add shelltestrunner test specs.

8 years agoAdd an example of using multiple threads for DNS lookups.
Michael Orlitzky [Wed, 9 Oct 2013 00:35:36 +0000 (20:35 -0400)]
Add an example of using multiple threads for DNS lookups.

8 years agoBump dns dependency to 1.*, and update DNS module. 0.0.5
Michael Orlitzky [Tue, 8 Oct 2013 02:42:33 +0000 (22:42 -0400)]
Bump dns dependency to 1.*, and update DNS module.
Fix parallelism so that it actually happens.
Bump version to 0.0.5.

8 years agoFix frontslash in man page.
Michael Orlitzky [Tue, 8 Oct 2013 01:43:41 +0000 (21:43 -0400)]
Fix frontslash in man page.

8 years agoAdd a TODO file. 0.0.4
Michael Orlitzky [Mon, 19 Aug 2013 22:27:57 +0000 (18:27 -0400)]
Add a TODO file.

8 years agoAdd that last manpage addition to the cabal file.
Michael Orlitzky [Mon, 19 Aug 2013 22:13:11 +0000 (18:13 -0400)]
Add that last manpage addition to the cabal file.

8 years agoAdd an upper bound on the base version.
Michael Orlitzky [Mon, 19 Aug 2013 22:11:38 +0000 (18:11 -0400)]
Add an upper bound on the base version.
Small addition to the man page.

8 years agoSimplify Read instance code.
Michael Orlitzky [Mon, 19 Aug 2013 13:45:00 +0000 (09:45 -0400)]
Simplify Read instance code.

8 years agoReplace cidr_from_string with a Read instance.
Michael Orlitzky [Mon, 19 Aug 2013 12:24:29 +0000 (08:24 -0400)]
Replace cidr_from_string with a Read instance.

8 years agoUpdate man page and cabal file examples.
Michael Orlitzky [Mon, 19 Aug 2013 02:10:44 +0000 (22:10 -0400)]
Update man page and cabal file examples.

8 years agoAdd a test for the Cidr 'enumerate' function.
Michael Orlitzky [Mon, 19 Aug 2013 00:58:32 +0000 (20:58 -0400)]
Add a test for the Cidr 'enumerate' function.
A ton more code cleanup.

8 years agoAdd some more tests; minor code cleanup.
Michael Orlitzky [Sun, 18 Aug 2013 20:34:37 +0000 (16:34 -0400)]
Add some more tests; minor code cleanup.

8 years agoBump the version number to 0.0.4 in hath.cabal.
Michael Orlitzky [Sat, 17 Aug 2013 21:25:52 +0000 (17:25 -0400)]
Bump the version number to 0.0.4 in hath.cabal.
Add two new modes: 'List' and 'Reversed' to list and perform a PTR lookup on a CIDR's addresses respectively.
Add a .ghci file which loads some modules automatically.
Add Bounded and Enum instances for Bit, Octet, IPv4Address.
Add some tests for the new functionality.

8 years agoVersion bump again, include the man page in the source distribution. 0.0.3
Michael Orlitzky [Sat, 8 Jun 2013 19:18:25 +0000 (15:18 -0400)]
Version bump again, include the man page in the source distribution.

8 years agoRemove useless --flags in makefile. 0.0.2
Michael Orlitzky [Sat, 8 Jun 2013 18:58:53 +0000 (14:58 -0400)]
Remove useless --flags in makefile.
Version bump and add other-modules to cabal file.

8 years agoAdd hlint makefile target. 0.0.1
Michael Orlitzky [Sat, 8 Jun 2013 17:38:06 +0000 (13:38 -0400)]
Add hlint makefile target.
Fix hlint suggestions.

8 years agoAdd category: Utils to cabal file.
Michael Orlitzky [Sat, 8 Jun 2013 16:34:40 +0000 (12:34 -0400)]
Add category: Utils to cabal file.

8 years agoPHONY the dist make target.
Michael Orlitzky [Sat, 8 Jun 2013 16:28:15 +0000 (12:28 -0400)]
PHONY the dist make target.
Change license to GPL3.
Add license field to cabal file.

8 years agoAdd a description to the cabal file.
Michael Orlitzky [Sat, 8 Jun 2013 16:20:18 +0000 (12:20 -0400)]
Add a description to the cabal file.

8 years agoFix escaping in a comment.
Michael Orlitzky [Fri, 7 Jun 2013 22:48:51 +0000 (18:48 -0400)]
Fix escaping in a comment.

8 years agoAdd a 'doc' makefile target.
Michael Orlitzky [Fri, 7 Jun 2013 22:46:43 +0000 (18:46 -0400)]
Add a 'doc' makefile target.

8 years agoAdd more Haddock comments.
Michael Orlitzky [Fri, 7 Jun 2013 22:18:10 +0000 (18:18 -0400)]
Add more Haddock comments.
Replace a few custom functions with library ones.
Allow input CIDRs to be separated by any whitespace, not just newlines.
Split the exit codes out into their own module.
Remove now-unused ListUtils modules.
Update deps in cabal file.
Add a man page.

8 years agoUse Cabal test integration.
Michael Orlitzky [Sun, 21 Apr 2013 16:41:57 +0000 (12:41 -0400)]
Use Cabal test integration.

8 years agoPrepare for version 0.0.1.
Michael Orlitzky [Sun, 21 Apr 2013 16:33:45 +0000 (12:33 -0400)]
Prepare for version 0.0.1.

8 years agoUse test-framework for the tests, and bump some dependencies.
Michael Orlitzky [Sun, 21 Apr 2013 16:24:14 +0000 (12:24 -0400)]
Use test-framework for the tests, and bump some dependencies.

9 years agoRelax the base version requirement.
Michael Orlitzky [Thu, 12 Apr 2012 17:21:59 +0000 (13:21 -0400)]
Relax the base version requirement.

9 years agoGreatly simplify the definition of IPv4Address.apply_mask.
Michael Orlitzky [Tue, 27 Dec 2011 03:52:39 +0000 (22:52 -0500)]
Greatly simplify the definition of IPv4Address.apply_mask.

9 years agoRemove an accidental line break and indentation.
Michael Orlitzky [Tue, 27 Dec 2011 03:38:46 +0000 (22:38 -0500)]
Remove an accidental line break and indentation.

9 years agoRewrite everything to use Maybe instead of None constructors.
Michael Orlitzky [Tue, 27 Dec 2011 03:33:25 +0000 (22:33 -0500)]
Rewrite everything to use Maybe instead of None constructors.
Convert comments to Haddock-style docs in many places.
Whitespace cleanup.

9 years agoCabalize the project.
Michael Orlitzky [Mon, 26 Dec 2011 18:04:41 +0000 (13:04 -0500)]
Cabalize the project.

9 years agoUpdate for QuickCheck 2.
Michael Orlitzky [Mon, 26 Dec 2011 17:58:50 +0000 (12:58 -0500)]
Update for QuickCheck 2.

10 years agoMake combine_all operate recursively.
Michael Orlitzky [Fri, 5 Nov 2010 19:27:41 +0000 (15:27 -0400)]
Make combine_all operate recursively.
Create a new test to test the recursive combine_all.
Add a custom (==) implementation for Cidrs.
Fix an incorrect test.

11 years agoFix four compiler warnings.
Michael Orlitzky [Thu, 2 Sep 2010 16:57:09 +0000 (12:57 -0400)]
Fix four compiler warnings.

11 years agoDon't use min_address or min_octet in the apply_mask functions. Now that apply_mask...
Michael Orlitzky [Sat, 28 Aug 2010 06:08:40 +0000 (02:08 -0400)]
Don't use min_address or min_octet in the apply_mask functions. Now that apply_mask accepts a mask bit, we no longer necessarily want the minimum.

11 years agoFixed one of the new tests (min/max).
Michael Orlitzky [Sat, 28 Aug 2010 06:07:59 +0000 (02:07 -0400)]
Fixed one of the new tests (min/max).

11 years agoAdded two new tests exposing an existing bug.
Michael Orlitzky [Sat, 28 Aug 2010 05:39:37 +0000 (01:39 -0400)]
Added two new tests exposing an existing bug.

11 years agoAdded LICENSE and README files.
Michael Orlitzky [Sat, 28 Aug 2010 04:45:56 +0000 (00:45 -0400)]
Added LICENSE and README files.

11 years agoFixed the maskbits parsing for invalid CIDRs.
Michael Orlitzky [Wed, 28 Jul 2010 18:07:36 +0000 (14:07 -0400)]
Fixed the maskbits parsing for invalid CIDRs.

11 years agoUpdate Cidr for the new definition of apply_mask.
Michael Orlitzky [Sun, 23 May 2010 16:53:11 +0000 (12:53 -0400)]
Update Cidr for the new definition of apply_mask.
Replace min/max_host with one-liners thanks to the new apply_mask.

11 years agoUpdate IPv4Address for the new definition of apply_mask.
Michael Orlitzky [Sun, 23 May 2010 16:52:41 +0000 (12:52 -0400)]
Update IPv4Address for the new definition of apply_mask.

11 years agoUpdate Octet for the new definition of apply_mask.
Michael Orlitzky [Sun, 23 May 2010 16:52:20 +0000 (12:52 -0400)]
Update Octet for the new definition of apply_mask.

11 years agoAllow apply_mask to take a Bit argument that will be used to replace the host bits.
Michael Orlitzky [Sun, 23 May 2010 16:51:26 +0000 (12:51 -0400)]
Allow apply_mask to take a Bit argument that will be used to replace the host bits.

11 years agoUse min_address to simplify some of the min_host cases.
Michael Orlitzky [Sun, 23 May 2010 16:25:15 +0000 (12:25 -0400)]
Use min_address to simplify some of the min_host cases.