]> granicus.if.org Git - pdns/commit
Add more tests to the Netmask unit tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 15 Jun 2017 14:36:52 +0000 (16:36 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Jul 2017 10:07:40 +0000 (12:07 +0200)
commit06e3890473ec9e4a09389243f29d6e20ebdbc83f
tree041ff9dcfca0cafe7f8df91c89b30afff7c67afd
parentb91dc6e92f013d2e0490e3234a415dbe85604b84
Add more tests to the Netmask unit tests

Additional tests:

 * getBits()
 * isIpv4()
 * isIPv6()
 * getNetwork()
 * getMaskedNetwork()
 * check that Netmasks constructed from ComboAddresses with different
ports match

(cherry picked from commit 7f3e6acd659a9fee8ed027e7abe99ea77b3ee691)
pdns/test-iputils_hh.cc