예제 #1
0
파일: __init__.py 프로젝트: derosse/kismet
    def __handle_kds_configure(self, seqno, packet):
        conf = datasource_pb2.Configure()
        conf.ParseFromString(packet)

        try:
            self.datasource_configure(seqno, conf)
        except AttributeError:
            self.send_datasource_configure_response(
                seqno,
                success=False,
                message="helper does not support source configuration")
예제 #2
0
파일: __init__.py 프로젝트: swak/kismet
    def __handle_kds_configure(self, seqno, packet):
        conf = datasource_pb2.Configure()
        conf.ParseFromString(packet)

        if self.configuresource is None:
            self.send_datasource_configure_report(seqno, success=False,
                                                  message="helper does not support source configuration")
            # self.spindown()
            return
            
        opts = self.configuresource(seqno, conf)
        
        if opts is None:
            self.send_datasource_configure_report(seqno, success=False,
                                                  message="helper does not support source configuration")
            # self.spindown()
            return

        self.send_datasource_configure_report(seqno, **opts)