ipv4cn.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:regional-ip-addresses 作者: x1angli 项目源码 文件源码
def derive_outwall(self):
        """
        This would not only inverse the set with the "big one", it would also exclude
        See: http://www.tcpipguide.com/free/t_IPReservedPrivateandLoopbackAddresses-3.htm
        """

        self.ipset_outwall = IPSet(['0.0.0.0/0']) - self.ipset_inwall - self.ipset_reserved
        self.cidrs_outwall = list(self.ipset_outwall.iter_cidrs())

        logging.info("Finished deriving out-wall IP table(s). Total: %i CIDR blocks.", len(self.cidrs_outwall), )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号