parser.py 文件源码

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

项目:nps 作者: pentasecurity 项目源码 文件源码
def _analyze_entity_node(self, node, entity):
        interface = node.get("interface")
        if interface is not None:
            mac_address = self.mac_addr_helper.get_interface_mac_addr(interface)
            entity.set_interface(interface, mac_address)

        for child in node.getchildren():
            if child.tag == "packet":
                # pre processing "include" node
                # TODO: Possible to be deleted
                #self.__add_include_to_packet_node(child)

                # analyze packet node!
                self._set_packet_node(child, entity)

        if self.print_tc_preprocessing is True:
            self.__indent(node)
            ET.dump(node)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号