silverstripeltd/submuncher
Composer 安装命令:
composer require silverstripeltd/submuncher
包简介
Tool for consolidating subnets
README 文档
README
Tool for shortening CIDRs lists.
Inspired by @andrewandante https://github.com/andrewandante/submuncher.
Promises
The tool promises the list will be shortened to desired maximum size. It also promises all input addresses will be included within the output CIDRs.
It does not guarantee output list will not have ("leak") non-input IPs. In other words, it consolidates the list by merging CIDRs and making them bigger.
Algorithm aims to minimise the leak size.
Example
$longList = ['1.1.1.0', '1.1.1.1', '1.1.1.2']; $subMuncher = new SubMuncher(); $shortList = $subMuncher->consolidate($longList, 1); // $shortList is ['1.1.1.0/30'] echo $subMuncher->getLeakTotal(); // Outputs "1" - 1.1.1.3 was leaked.
统计信息
- 总下载量: 3.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-22