def stop(self): manager = AuditManager() manager.remove_decoder(NET_LAYER, LL_TYPE_IP, self.ip_decoder) manager.remove_injector(0, LL_TYPE_IP, ip_injector) manager.remove_injector(0, STATELESS_IP_MAGIC, stateless_ip_injector) self.decoder = None
def stop(self): manager = AuditManager() manager.remove_decoder(PROTO_LAYER, NL_TYPE_TCP, self._process_tcp) manager.remove_injector(1, NL_TYPE_TCP, self._inject_tcp) try: manager.remove_decoder_hook(PROTO_LAYER, NL_TYPE_ICMP, self.reassembler.process_icmp, 1) except: pass
def stop(self): manager = AuditManager() manager.remove_decoder(PROTO_LAYER, NL_TYPE_UDP, self.decoder) manager.remove_injector(1, NL_TYPE_UDP, self.injector)