Wladimir J. van der Laan ae3d8f371a
Fix two problems in CSubNet parsing
Fix two CSubNet constructor problems:

- The use of `/x` where 8 does not divide x was broken, due to a
  bit-order issue

- The use of e.g. `1.2.3.4/24` where the netmasked bits in the network
  are not 0 was broken. Fix this by explicitly normalizing the netwok
  according to the bitmask.

Also add tests for these cases.

Fixes #6179. Thanks to @jonasschnelli for reporting and initial fix.

Rebased-From: b45c50ce511dbf541ea086ae40a3ad16ff06de0c
Github-Pull: #6186
2015-05-27 09:11:27 +02:00
..
2015-03-19 00:14:28 -04:00
2014-11-20 17:22:06 +01:00
2015-02-01 17:57:38 -04:00
2015-05-12 16:33:04 +02:00
2015-02-03 10:33:58 +01:00
2015-05-27 09:11:27 +02:00
2014-11-03 16:16:40 +01:00
2015-04-01 16:39:55 +02:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-12-03 10:52:58 +00:00
2015-03-19 00:14:28 -04:00
2014-12-03 10:52:58 +00:00
2014-12-05 11:24:39 +01:00
2014-11-20 17:22:02 +01:00
2014-11-20 17:22:02 +01:00
2014-12-01 14:57:58 +01:00
2014-12-01 14:57:58 +01:00
2015-03-09 11:13:35 +01:00
2015-05-27 09:10:56 +02:00
2014-08-28 22:25:21 +02:00
2014-12-03 10:52:58 +00:00
2015-03-19 00:14:28 -04:00
2014-11-03 16:16:40 +01:00
2014-11-20 17:22:02 +01:00
2014-11-25 08:18:33 +01:00
2015-04-14 10:52:03 +02:00
2014-12-03 10:52:58 +00:00
2014-11-03 16:16:40 +01:00
2014-10-03 04:29:51 +02:00