예제 #1
0
    def __handle_kds_listinterfaces(self, seqno, packet):
        cmd = datasource_pb2.ListInterfaces()
        cmd.ParseFromString(packet)

        if self.listinterfaces is None:
            self.send_datasource_interfaces_report(seqno, success=True)
        else:
            self.listinterfaces(seqno)
예제 #2
0
파일: __init__.py 프로젝트: derosse/kismet
    def __handle_kds_listinterfaces(self, seqno, packet):
        cmd = datasource_pb2.ListInterfaces()
        cmd.ParseFromString(packet)

        try:
            self.datasource_listinterfaces(seqno)
        except AttributeError:
            self.send_datasource_interfaces_report(seqno, success=True)