def lisp_itr_data_plane(packet, device, input_interface, macs, my_sa): global lisp_send_sockets global lisp_ephem_port global lisp_raw_socket, lisp_raw_v6_socket global lisp_ipc_listen_socket # # Check RLOC-probe Map-Reply. We need to grab the TTL from IP header. # orig_packet = packet packet, source, port, ttl = lisp.lisp_is_rloc_probe(packet, 1) if (orig_packet != packet): if (source == None): return lisp.lisp_parse_packet(lisp_send_sockets, packet, source, port, ttl) return #endif packet = lisp.lisp_packet(packet) if (packet.decode(False, None, None) == None): return # # For locally source packets from this system, the MAC address may # be the default router. Check source to see if assigned to this system, # and if so, accept on interface "device". # if (my_sa): input_interface = device # # Get instance-ID for incoming interface. # source_eid = packet.inner_source iid = lisp.lisp_get_interface_instance_id(input_interface, source_eid) packet.inner_dest.instance_id = iid packet.inner_source.instance_id = iid # # Print some useful header fields and strip outer headers.. # if (macs != ""): macs = ", MACs: " + macs + "," packet.print_packet("Receive {}{}".format(device, macs), False) # # Drop packet if input interface not found based on MAC address used. # if (device != input_interface and device != "lispers.net"): lisp.dprint("Not our MAC address on interface {}, pcap interface {}". \ format(input_interface, device)) return #endif lisp_decent = lisp.lisp_decent_push_configured if (lisp_decent): multicast = packet.inner_dest.is_multicast_address() local = packet.inner_source.is_local() lisp_decent = (local and multicast) #endif if (lisp_decent == False): # # Only forward packets from source-EIDs. # db = lisp.lisp_db_for_lookups.lookup_cache(packet.inner_source, False) if (db == None): lisp.dprint("Packet received from non-EID source") return #endif # # Check to see if we are doing dynamic-EID discovery. # if (db.dynamic_eid_configured()): i = lisp.lisp_allow_dynamic_eid(input_interface, packet.inner_source) if (i): lisp.lisp_itr_discover_eid(db, packet.inner_source, input_interface, i, lisp_ipc_listen_socket) else: e = lisp.green(packet.inner_source.print_address(), False) lisp.dprint("Disallow dynamic-EID {} on interface {}".format(e, input_interface)) return #endif #endif if (packet.inner_source.is_local() and packet.udp_dport == lisp.LISP_CTRL_PORT): return #endif # # Do input processing for currently supported packet types.. # if (packet.inner_version == 4): igmp, packet.packet = lisp.lisp_ipv4_input(packet.packet) if (packet.packet == None or igmp): return packet.inner_ttl -= 1 elif (packet.inner_version == 6): packet.packet = lisp.lisp_ipv6_input(packet) if (packet.packet == None): return packet.inner_ttl -= 1 else: packet.packet = lisp.lisp_mac_input(packet.packet) if (packet.packet == None): return packet.encap_port = lisp.LISP_L2_DATA_PORT #endif # # First check if destination is to any local EID-prefixes from database- # mapping commands. In this case, we need to natively forward. # if (lisp_xtr_loopback == False): db = lisp.lisp_db_for_lookups.lookup_cache(packet.inner_dest, False) if (db and db.dynamic_eid_configured == False): lisp.dprint(("Packet destined to local EID-prefix {}, " + \ "natively forwarding").format(db.print_eid_tuple())) packet.send_packet(lisp_raw_socket, packet.inner_dest) return #endif #endif # # Do map-cache lookup. # mc = lisp.lisp_map_cache_lookup(packet.inner_source, packet.inner_dest) # # If "secondary-iid" is configured, we want to check the secondary # map-cache if a lookup miss occured in the default IID for this source # EID-prefix. If destination EID found in secondary map-cache, use it. # Otherwise, send Map-Request for EID in default IID. # secondary_iid = db.secondary_iid if (db != None) else None if (secondary_iid and mc and mc.action == lisp.LISP_NATIVE_FORWARD_ACTION): dest_eid = packet.inner_dest dest_eid.instance_id = secondary_iid mc = lisp.lisp_map_cache_lookup(packet.inner_source, dest_eid) #endif # # Map-cache lookup miss. # if (mc == None or mc.action == lisp.LISP_SEND_MAP_REQUEST_ACTION): if (lisp.lisp_rate_limit_map_request(packet.inner_source, packet.inner_dest)): return lisp.lisp_send_map_request(lisp_send_sockets, lisp_ephem_port, packet.inner_source, packet.inner_dest, None) if (packet.is_trace()): lisp.lisp_trace_append(packet, reason="map-cache miss") #endif return #endif # # Send Map-Request to see if there is a RLOC change or to refresh an # entry that is about to time out. # if (mc and mc.is_active() and mc.has_ttl_elapsed()): lisp.lprint("Refresh map-cache entry {}".format( \ lisp.green(mc.print_eid_tuple(), False))) lisp.lisp_send_map_request(lisp_send_sockets, lisp_ephem_port, packet.inner_source, packet.inner_dest, None) #endif # # Update stats for entry. Stats per RLOC is done in lisp_mapping.select_ # rloc(). # mc.stats.increment(len(packet.packet)) # # Encapsulate, native forward, or encapsulate-and-replciate packet. # dest_rloc, dest_port, nonce, action, rle, rloc_entry = \ mc.select_rloc(packet, lisp_ipc_listen_socket) if (dest_rloc == None and rle == None): if (action == lisp.LISP_NATIVE_FORWARD_ACTION): lisp.dprint("Natively forwarding") packet.send_packet(lisp_raw_socket, packet.inner_dest) if (packet.is_trace()): lisp.lisp_trace_append(packet, reason="not an EID") #endif return #endif r = "No reachable RLOCs found" lisp.dprint(r) if (packet.is_trace()): lisp.lisp_trace_append(packet, reason=r) return #endif if (dest_rloc and dest_rloc.is_null()): r = "Drop action RLOC found" lisp.dprint(r) if (packet.is_trace()): lisp.lisp_trace_append(packet, reason=r) return #endif # # Setup outer header for either unicast or multicast transmission.. # packet.outer_tos = packet.inner_tos packet.outer_ttl = packet.inner_ttl # # Do unicast encapsulation. # if (dest_rloc): packet.outer_dest.copy_address(dest_rloc) version = packet.outer_dest.afi_to_version() packet.outer_version = version source_rloc = lisp.lisp_myrlocs[0] if (version == 4) else \ lisp.lisp_myrlocs[1] packet.outer_source.copy_address(source_rloc) if (packet.is_trace()): if (lisp.lisp_trace_append(packet, rloc_entry=rloc_entry) \ == False): return #endif # # Encode new LISP, UDP, and outer header. # if (packet.encode(nonce) == None): return if (len(packet.packet) <= 1500): packet.print_packet("Send", True) # # Send out on raw socket. # raw_socket = lisp_raw_v6_socket if version == 6 else lisp_raw_socket packet.send_packet(raw_socket, packet.outer_dest) elif (rle): # # Do replication of RLE is returned. Since we are an ITR, replicate to # level-0 RTRs (or ETRs) only (or first-level boxes only).. # level = rle.rle_nodes[0].level orig_len = len(packet.packet) for node in rle.rle_forwarding_list: if (node.level != level): return packet.outer_dest.copy_address(node.address) if (lisp_decent): packet.inner_dest.instance_id = 0xffffff version = packet.outer_dest.afi_to_version() packet.outer_version = version source_rloc = lisp.lisp_myrlocs[0] if (version == 4) else \ lisp.lisp_myrlocs[1] packet.outer_source.copy_address(source_rloc) if (packet.is_trace()): if (lisp.lisp_trace_append(packet) == False): return #endif if (packet.encode(None) == None): return # # Replicate out on raw socket. # packet.print_packet("Replicate-to-L{}".format(node.level), True) packet.send_packet(lisp_raw_socket, packet.outer_dest) # # We need to strip the encapsulation header so we can add a new # one for the next replication. # strip_len = len(packet.packet) - orig_len packet.packet = packet.packet[strip_len::] #endfor #endif # # Don't need packet structure anymore. # del(packet) return
if (o00oo0()): lisp.lprint("lisp_ddt_startup() failed") lisp.lisp_print_banner("DDT-Node abnormal exit") exit(1) if 52 - 52: ooOoO0o.iII111i + I1Ii111 if 38 - 38: i1IIi - II111iiii.I1Ii111 while (True): ooO, o0o00OOo0, I1IIii1, OO0o0oOOO0O = lisp.lisp_receive( oooO0oo0oOOOO, True) if 49 - 49: I1ii11iIi11i.o0oOOo0O0Ooo.II111iiii if (o0o00OOo0 == ""): break if 98 - 98: iII111i if (ooO == "command"): lispconfig.lisp_process_command(oooO0oo0oOOOO, ooO, OO0o0oOOO0O, "lisp-ddt", [iiii111II]) else: lisp.lisp_parse_packet(i1I1ii1II1iII, OO0o0oOOO0O, o0o00OOo0, I1IIii1) if 68 - 68: iIii1I11I1II1 * iIii1I11I1II1.o0oOOo0O0Ooo / II111iiii % Oo0Ooo if 38 - 38: ooOoO0o - OOooOOo / iII111i if 66 - 66: O0 % I1ii11iIi11i + i11iIiiIii.OoOoOO00 / Ii1I + I1ii11iIi11i oOooO() lisp.lisp_print_banner("DDT-Node normal exit") exit(0) if 86 - 86: o0oOOo0O0Ooo if 5 - 5: IiII * OoOoOO00 if 5 - 5: I1Ii111 # dd678faae9ac167bc83abf78e5cb2f3f0688d3a3
def lisp_rtr_data_plane(lisp_packet, thread_name): global lisp_send_sockets, lisp_ephem_prot, lisp_data_packet global lisp_raw_socket, lisp_raw_v6_socket packet = lisp_packet # # Check RLOC-probe Map-Request. We need to grab the TTL from IP header. # orig_pkt = packet.packet pkt = orig_pkt pkt, source, port, ttl = lisp.lisp_is_rloc_probe(pkt, -1) if (orig_pkt != pkt): if (source == None): return lisp.lisp_parse_packet(lisp_send_sockets, pkt, source, port, ttl) return #endif # # First check if we are assembling IPv4 fragments. # packet.packet = lisp.lisp_reassemble(packet.packet) if (packet.packet == None): return # # We need to cache the input encapsualted packet as well as the output # encapsulated packet. # if (lisp.lisp_flow_logging): packet = copy.deepcopy(packet) if (packet.decode(True, None, lisp.lisp_decap_stats) == None): return # # Print some useful header fields and strip outer headers.. # packet.print_packet("Receive-({})".format(thread_name), True) # # Strip outer headers and start inner header forwarding logic. # packet.strip_outer_headers() # # If instance-id is 0xffffff, this is a Info-Request packet encapsulated # to port 4341. We need to store the source port and source RLOC for # NAT-traversal reasons. # # We don't need to send an Info-Reply from the 4341 data port. There is no # information the xTR needs. It has the translated address from the # map-server, and the NAT is ready for packets from port 4341 since we # received this Info-Request. # if (packet.lisp_header.get_instance_id() == 0xffffff): header = lisp.lisp_control_header() header.decode(packet.packet) if (header.is_info_request()): info = lisp.lisp_info() info.decode(packet.packet) info.print_info() # # Store/refresh NAT state and Fix map-cache entries if there was # a change. # h = info.hostname if (info.hostname != None) else "" s = packet.outer_source p = packet.udp_sport if (lisp.lisp_store_nat_info(h, s, p)): lisp_fix_rloc_encap_state(lisp_send_sockets, h, s, p) #endif else: source = packet.outer_source.print_address_no_iid() ttl = packet.outer_ttl packet = packet.packet if (lisp.lisp_is_rloc_probe_request(packet[28]) == False and lisp.lisp_is_rloc_probe_reply(packet[28]) == False): ttl = -1 packet = packet[28::] lisp.lisp_parse_packet(lisp_send_sockets, packet, source, 0, ttl) #endif return #endif # # Packets are arriving on pcap interface. Need to check if another data- # plane is running. If so, don't deliver duplicates. # if (lisp.lisp_ipc_data_plane): lisp.dprint("Drop packet, external data-plane active") return #endif # # Increment global stats. # lisp.lisp_decap_stats["good-packets"].increment(len(packet.packet)) # # Process inner header (checksum and decrement ttl). # if (packet.inner_dest.is_mac()): packet.packet = lisp.lisp_mac_input(packet.packet) if (packet.packet == None): return packet.encap_port = lisp.LISP_VXLAN_DATA_PORT elif (packet.inner_version == 4): packet.packet = lisp.lisp_ipv4_input(packet.packet) if (packet.packet == None): return packet.inner_ttl = packet.outer_ttl elif (packet.inner_version == 6): packet.packet = lisp.lisp_ipv6_input(packet) if (packet.packet == None): return packet.inner_ttl = packet.outer_ttl else: lisp.dprint("Cannot parse inner packet header") return #endif # # Process decap node trace function. # if (packet.is_trace()): if (lisp.lisp_trace_append(packet, "decap") == False): return packet.outer_source.afi = lisp.LISP_AFI_NONE packet.outer_dest.afi = lisp.LISP_AFI_NONE #endif # # Do map-cache lookup. If no entry found, send Map-Request. # mc = lisp.lisp_map_cache_lookup(packet.inner_source, packet.inner_dest) # # Check if we are doing secondary-instance-ids only when we have a # map-cache entry in the IID that is possibly a non-LISP site. # if (mc and (mc.action == lisp.LISP_NATIVE_FORWARD_ACTION or mc.eid.address == 0)): db = lisp.lisp_db_for_lookups.lookup_cache(packet.inner_source, False) if (db and db.secondary_iid): dest_eid = packet.inner_dest dest_eid.instance_id = db.secondary_iid mc = lisp.lisp_map_cache_lookup(packet.inner_source, dest_eid) #endif #endif # # Map-cache lookup miss. # if (mc == None or mc.action == lisp.LISP_SEND_MAP_REQUEST_ACTION): if (lisp.lisp_rate_limit_map_request(packet.inner_source, packet.inner_dest)): return lisp.lisp_send_map_request(lisp_send_sockets, lisp_ephem_port, packet.inner_source, packet.inner_dest, None) if (packet.is_trace()): lisp.lisp_trace_append(packet) return #endif # # Send Map-Request to see if there is a RLOC change or to refresh an # entry that is about to time out. # if (mc and mc.is_active() and mc.has_ttl_elapsed()): lisp.lprint("Refresh map-cache entry {}".format( \ lisp.green(mc.print_eid_tuple(), False))) lisp.lisp_send_map_request(lisp_send_sockets, lisp_ephem_port, packet.inner_source, packet.inner_dest, None) #endif # # Update stats for entry. Stats per RLOC is done in lisp_mapping.select_ # rloc(). # mc.stats.increment(len(packet.packet)) # # Encapsulate or native forward packet. # dest_rloc, dest_port, nonce, action, rle = mc.select_rloc(packet, None) if (dest_rloc == None and rle == None): if (action == lisp.LISP_NATIVE_FORWARD_ACTION): lisp.dprint("Natively forwarding") packet.send_packet(lisp_raw_socket, packet.inner_dest) if (packet.is_trace()): lisp.lisp_trace_append(packet) return #endif lisp.dprint("No reachable RLOCs found") if (packet.is_trace()): lisp.lisp_trace_append(packet) return #endif if (dest_rloc and dest_rloc.is_null()): lisp.dprint("Drop action RLOC found") if (packet.is_trace()): lisp.lisp_trace_append(packet) return #endif # # Setup outer header for either unicast or multicast transmission.. # packet.outer_tos = packet.inner_tos packet.outer_ttl = packet.inner_ttl # # Do unicast encapsulation. # if (dest_rloc): packet.encap_port = dest_port if (dest_port == 0): packet.encap_port = lisp.LISP_DATA_PORT packet.outer_dest.copy_address(dest_rloc) version = packet.outer_dest.afi_to_version() packet.outer_version = version source_rloc = lisp.lisp_myrlocs[0] if (version == 4) else \ lisp.lisp_myrlocs[1] packet.outer_source.copy_address(source_rloc) if (packet.is_trace()): if (lisp.lisp_trace_append(packet) == False): return #endif # # Encode new LISP, UDP, and outer header. # if (packet.encode(nonce) == None): return if (len(packet.packet) <= 1500): packet.print_packet("Send", True) # # Send out on raw socket. # raw_socket = lisp_raw_v6_socket if version == 6 else lisp_raw_socket packet.send_packet(raw_socket, packet.outer_dest) elif (rle): # # Do replication of RLE is returned. # orig_len = len(packet.packet) for node in rle.rle_forwarding_list: packet.outer_dest.copy_address(node.address) packet.encap_port = lisp.LISP_DATA_PORT if \ node.translated_port == 0 else node.translated_port version = packet.outer_dest.afi_to_version() packet.outer_version = version source_rloc = lisp.lisp_myrlocs[0] if (version == 4) else \ lisp.lisp_myrlocs[1] packet.outer_source.copy_address(source_rloc) if (packet.is_trace()): if (lisp.lisp_trace_append(packet) == False): return #endif if (packet.encode(None) == None): return packet.print_packet("Replicate-to-L{}".format(node.level), True) packet.send_packet(lisp_raw_socket, packet.outer_dest) # # We need to strip the encapsulation header so we can add a new # one for the next replication. # strip_len = len(packet.packet) - orig_len packet.packet = packet.packet[strip_len::] if (lisp.lisp_flow_logging): packet = copy.deepcopy(packet) #endfor #endif # # Don't need packet structure anymore. # del(packet) return
lisp_ephem_port) #endif # # Process Map-Reply messages received on ephemeral port. # if (lisp_ephem_listen_socket in ready_list): opcode, source, port, packet = lisp.lisp_receive(ephem_sockets[0], False) if (source == ""): break if (lisp.lisp_is_rloc_probe_reply(packet[0])): lisp.lprint("ITR ignoring RLOC-probe reply, using pcap") continue #endif lisp.lisp_parse_packet(ephem_sockets, packet, source, port) #endif # # Process Info-Reply messages received on NAT ephemeral port. # if (lisp_ephem_nat_socket in ready_list): opcode, source, port, packet = lisp.lisp_receive(ephem_nat_sockets[0], False) if (source == ""): break if (lisp.lisp_is_rloc_probe_reply(packet[0])): lisp.lprint("ITR ignoring RLOC-probe reply, using pcap") continue #endif probe = lisp.lisp_parse_packet(ephem_nat_sockets, packet, source, port)
# # Main entry point for process. # if (lisp_ms_startup() == False): lisp.lprint("lisp_ms_startup() failed") lisp.lisp_print_banner("Map-Server abnormal exit") exit(1) #endif while (True): opcode, source, port, packet = \ lisp.lisp_receive(lisp_ipc_listen_socket, True) if (source == ""): break if (opcode == "command"): lispconfig.lisp_process_command( lisp_ipc_listen_socket, opcode, packet, "lisp-ms", [lisp_ms_commands, lisp.lisp_policy_commands]) elif (opcode == "api"): lisp.lisp_process_api("lisp-ms", lisp_ipc_listen_socket, packet) else: lisp.lisp_parse_packet(lisp_send_sockets, packet, source, port) #endif #endwhile lisp_ms_shutdown() lisp.lisp_print_banner("Map-Server normal exit") exit(0) #------------------------------------------------------------------------------
lisp.lprint("lisp_ddt_startup() failed") lisp.lisp_print_banner("DDT-Node abnormal exit") exit(1) if 68 - 68: OoooooooOO * I11i % OoOoOO00 - IiII if 34 - 34: I1Ii111.iIii1I11I1II1 * OoOoOO00 * oO0o / I1Ii111 / I1ii11iIi11i while (True): oOoOOo0O, OOOooo, OooO0OO, o0OOo0o0O0O = lisp.lisp_receive( oooO0oo0oOOOO, True) if 65 - 65: i11iIiiIii if (OOOooo == ""): break if 85 - 85: Ii1I % iII111i + I11i / o0oOOo0O0Ooo.oO0o + OOooOOo if (oOoOOo0O == "command"): o0OOo0o0O0O = o0OOo0o0O0O.decode() lispconfig.lisp_process_command(oooO0oo0oOOOO, oOoOOo0O, o0OOo0o0O0O, "lisp-ddt", [oO00ooooO0o]) else: lisp.lisp_parse_packet(i1I1ii1II1iII, o0OOo0o0O0O, OOOooo, OooO0OO) if 62 - 62: i11iIiiIii + i11iIiiIii - o0oOOo0O0Ooo if 28 - 28: iII111i.iII111i % iIii1I11I1II1 * iIii1I11I1II1.o0oOOo0O0Ooo / iII111i if 27 - 27: OoO0O00 + ooOoO0o - i1IIi oOOOoo00() lisp.lisp_print_banner("DDT-Node normal exit") exit(0) if 69 - 69: IiII - O0 % I1ii11iIi11i + i11iIiiIii.OoOoOO00 / OoO0O00 if 79 - 79: O0 * i11iIiiIii - IiII / IiII if 48 - 48: O0 # dd678faae9ac167bc83abf78e5cb2f3f0688d3a3
def O0O(lisp_packet, thread_name): global II1iII1i, i1I1I, iiI1I global iiI1iIiI, OOo if 12 - 12: i11iIiiIii - i1IIi - OoO0O00.i1IIi - OOooOOo + O0 oO0OOOO0 = lisp_packet if 26 - 26: Ii1I if 35 - 35: Ii1I - I1IiiI % o0oOOo0O0Ooo.OoooooooOO % Ii1I if 47 - 47: iII111i - Ii1I.II111iiii + OoooooooOO.i11iIiiIii if 94 - 94: o0oOOo0O0Ooo * Ii1I / Oo0Ooo / Ii1I oO0 = oO0OOOO0.packet O0OO0O = oO0 O0OO0O, OO, IIIIii, OoOoO = lisp.lisp_is_rloc_probe(O0OO0O, -1) if (oO0 != O0OO0O): if (OO == None): return lisp.lisp_parse_packet(II1iII1i, O0OO0O, OO, IIIIii, OoOoO) return if 43 - 43: i11iIiiIii + Oo0Ooo * II111iiii * I1Ii111 * O0 if 64 - 64: OOooOOo % iIii1I11I1II1 * oO0o if 79 - 79: O0 if 78 - 78: I1ii11iIi11i + OOooOOo - I1Ii111 if 38 - 38: o0oOOo0O0Ooo - oO0o + iIii1I11I1II1 / OoOoOO00 % Oo0Ooo oO0OOOO0.packet = lisp.lisp_reassemble(oO0OOOO0.packet) if (oO0OOOO0.packet == None): return if 57 - 57: OoO0O00 / ooOoO0o if 29 - 29: iIii1I11I1II1 + OoOoOO00 * OoO0O00 * OOooOOo.I1IiiI * I1IiiI if 7 - 7: IiII * I1Ii111 % Ii1I - o0oOOo0O0Ooo if 13 - 13: Ii1I.i11iIiiIii if 56 - 56: I1ii11iIi11i % O0 - I1IiiI if (lisp.lisp_flow_logging): oO0OOOO0 = copy.deepcopy(oO0OOOO0) if 100 - 100: Ii1I - O0 % oO0o * OOooOOo + I1IiiI if (oO0OOOO0.decode(True, None, lisp.lisp_decap_stats) == None): return if 88 - 88: OoooooooOO - OoO0O00 * O0 * OoooooooOO.OoooooooOO if 33 - 33: I1Ii111 + iII111i * oO0o / iIii1I11I1II1 - I1IiiI if 54 - 54: I1Ii111 / OOooOOo.oO0o % iII111i if 57 - 57: i11iIiiIii.I1ii11iIi11i - Ii1I - oO0o + OoOoOO00 oO0OOOO0.print_packet("Receive-({})".format(thread_name), True) if 63 - 63: OoOoOO00 * iII111i if 69 - 69: O0.OoO0O00 if 49 - 49: I1IiiI - I11i if 74 - 74: iIii1I11I1II1 * I1ii11iIi11i + OoOoOO00 / i1IIi / II111iiii.Oo0Ooo oO0OOOO0.strip_outer_headers() if 62 - 62: OoooooooOO * I1IiiI if 58 - 58: OoOoOO00 % o0oOOo0O0Ooo if 50 - 50: I1Ii111.o0oOOo0O0Ooo if 97 - 97: O0 + OoOoOO00 if 89 - 89: o0oOOo0O0Ooo + OoO0O00 * I11i * Ii1I if 37 - 37: OoooooooOO - O0 - o0oOOo0O0Ooo if 77 - 77: OOooOOo * iIii1I11I1II1 if 98 - 98: I1IiiI % Ii1I * OoooooooOO if 51 - 51: iIii1I11I1II1.OoOoOO00 / oO0o + o0oOOo0O0Ooo if 33 - 33: ooOoO0o.II111iiii % iII111i + o0oOOo0O0Ooo if 71 - 71: Oo0Ooo % OOooOOo if (oO0OOOO0.lisp_header.get_instance_id() == 0xffffff): O00oO000O0O = lisp.lisp_control_header() O00oO000O0O.decode(oO0OOOO0.packet) if (O00oO000O0O.is_info_request()): I1i1i1iii = lisp.lisp_info() I1i1i1iii.decode(oO0OOOO0.packet) I1i1i1iii.print_info() if 16 - 16: Ii1I + IiII * O0 % i1IIi.I1IiiI if 67 - 67: OoooooooOO / I1IiiI * Ii1I + I11i if 65 - 65: OoooooooOO - I1ii11iIi11i / ooOoO0o / II111iiii / i1IIi if 71 - 71: I1Ii111 + Ii1I if 28 - 28: OOooOOo I11ii1IIiIi = I1i1i1iii.hostname if ( I1i1i1iii.hostname != None) else "" OoOOo0OOoO = oO0OOOO0.outer_source ooO0O00Oo0o = oO0OOOO0.udp_sport if (lisp.lisp_store_nat_info(I11ii1IIiIi, OoOOo0OOoO, ooO0O00Oo0o)): i1I1iI1iIi111i(II1iII1i, I11ii1IIiIi, OoOOo0OOoO, ooO0O00Oo0o) if 65 - 65: I1ii11iIi11i.I11i - I1Ii111 * IiII / I1Ii111 / ooOoO0o else: OO = oO0OOOO0.outer_source.print_address_no_iid() OoOoO = oO0OOOO0.outer_ttl oO0OOOO0 = oO0OOOO0.packet if (lisp.lisp_is_rloc_probe_request(oO0OOOO0[28]) == False and lisp.lisp_is_rloc_probe_reply(oO0OOOO0[28]) == False): OoOoO = -1 oO0OOOO0 = oO0OOOO0[28::] lisp.lisp_parse_packet(II1iII1i, oO0OOOO0, OO, 0, OoOoO) if 40 - 40: ooOoO0o * IiII * i11iIiiIii return if 57 - 57: ooOoO0o if 29 - 29: OoOoOO00 - IiII * OoooooooOO + OoooooooOO.II111iiii + OoooooooOO if 74 - 74: Ii1I - IiII / iII111i * O0 - OOooOOo if 19 - 19: I1IiiI if 25 - 25: Ii1I / ooOoO0o if 31 - 31: OOooOOo.O0 % I1IiiI.o0oOOo0O0Ooo + IiII if (lisp.lisp_ipc_data_plane): lisp.dprint("Drop packet, external data-plane active") return if 71 - 71: I1Ii111.II111iiii if 62 - 62: OoooooooOO.I11i if 61 - 61: OoOoOO00 - OOooOOo - i1IIi if 25 - 25: O0 * I11i + I1ii11iIi11i.o0oOOo0O0Ooo.o0oOOo0O0Ooo if 58 - 58: I1IiiI lisp.lisp_decap_stats["good-packets"].increment(len(oO0OOOO0.packet)) if 53 - 53: i1IIi if 59 - 59: o0oOOo0O0Ooo if 81 - 81: OoOoOO00 - OoOoOO00.iII111i if 73 - 73: I11i % i11iIiiIii - I1IiiI if (oO0OOOO0.inner_dest.is_mac()): oO0OOOO0.packet = lisp.lisp_mac_input(oO0OOOO0.packet) if (oO0OOOO0.packet == None): return oO0OOOO0.encap_port = lisp.LISP_VXLAN_DATA_PORT elif (oO0OOOO0.inner_version == 4): oO0OOOO0.packet = lisp.lisp_ipv4_input(oO0OOOO0.packet) if (oO0OOOO0.packet == None): return oO0OOOO0.inner_ttl = oO0OOOO0.outer_ttl elif (oO0OOOO0.inner_version == 6): oO0OOOO0.packet = lisp.lisp_ipv6_input(oO0OOOO0) if (oO0OOOO0.packet == None): return oO0OOOO0.inner_ttl = oO0OOOO0.outer_ttl else: lisp.dprint("Cannot parse inner packet header") return if 7 - 7: O0 * i11iIiiIii * Ii1I + ooOoO0o % OoO0O00 - ooOoO0o if 39 - 39: Oo0Ooo * OOooOOo % OOooOOo - OoooooooOO + o0oOOo0O0Ooo - I11i if 23 - 23: i11iIiiIii if 30 - 30: o0oOOo0O0Ooo - i1IIi % II111iiii + I11i * iIii1I11I1II1 if 81 - 81: IiII % i1IIi.iIii1I11I1II1 Ii1Iii1iIi = lisp.lisp_map_cache_lookup(oO0OOOO0.inner_source, oO0OOOO0.inner_dest) if 82 - 82: I1ii11iIi11i / I1IiiI % iIii1I11I1II1 / i1IIi - I1IiiI if 7 - 7: I1Ii111 * OoO0O00 - ooOoO0o + OOooOOo * I1IiiI % OoO0O00 if 15 - 15: OoOoOO00 % I1IiiI * I11i if 81 - 81: ooOoO0o - iIii1I11I1II1 - i1IIi / I1Ii111 - O0 * I11i if 20 - 20: oO0o % IiII if (Ii1Iii1iIi and (Ii1Iii1iIi.action == lisp.LISP_NATIVE_FORWARD_ACTION or Ii1Iii1iIi.eid.address == 0)): III1i1i11i = lisp.lisp_db_for_lookups.lookup_cache( oO0OOOO0.inner_source, False) if (III1i1i11i and III1i1i11i.secondary_iid): oOo0 = oO0OOOO0.inner_dest oOo0.instance_id = III1i1i11i.secondary_iid Ii1Iii1iIi = lisp.lisp_map_cache_lookup(oO0OOOO0.inner_source, oOo0) if 56 - 56: o0oOOo0O0Ooo + II111iiii + OoOoOO00 - ooOoO0o.OoOoOO00 if 84 - 84: OoO0O00 + i1IIi - II111iiii.I1ii11iIi11i * OoooooooOO + I1IiiI if 38 - 38: OOooOOo + II111iiii % ooOoO0o % OoOoOO00 - Ii1I / OoooooooOO if 73 - 73: o0oOOo0O0Ooo * O0 - i11iIiiIii if 85 - 85: Ii1I % iII111i + I11i / o0oOOo0O0Ooo.oO0o + OOooOOo if 62 - 62: i11iIiiIii + i11iIiiIii - o0oOOo0O0Ooo if (Ii1Iii1iIi == None or Ii1Iii1iIi.action == lisp.LISP_SEND_MAP_REQUEST_ACTION): if (lisp.lisp_rate_limit_map_request(oO0OOOO0.inner_source, oO0OOOO0.inner_dest)): return lisp.lisp_send_map_request(II1iII1i, II1Ii1iI1i, oO0OOOO0.inner_source, oO0OOOO0.inner_dest, None) return if 28 - 28: iII111i.iII111i % iIii1I11I1II1 * iIii1I11I1II1.o0oOOo0O0Ooo / iII111i if 27 - 27: OoO0O00 + ooOoO0o - i1IIi if 69 - 69: IiII - O0 % I1ii11iIi11i + i11iIiiIii.OoOoOO00 / OoO0O00 if 79 - 79: O0 * i11iIiiIii - IiII / IiII if 48 - 48: O0 if 93 - 93: i11iIiiIii - I1IiiI * I1ii11iIi11i * I11i % O0 + OoooooooOO if (Ii1Iii1iIi and Ii1Iii1iIi.is_active() and Ii1Iii1iIi.has_ttl_elapsed()): lisp.lprint("Refresh map-cache entry {}".format( lisp.green(Ii1Iii1iIi.print_eid_tuple(), False))) if 25 - 25: IiII + Ii1I / ooOoO0o.o0oOOo0O0Ooo % O0 * OoO0O00 lisp.lisp_send_map_request(II1iII1i, II1Ii1iI1i, oO0OOOO0.inner_source, oO0OOOO0.inner_dest, None) if 84 - 84: ooOoO0o % Ii1I + i11iIiiIii if 28 - 28: Oo0Ooo + OoO0O00 * OOooOOo % oO0o.I11i % O0 if 16 - 16: I11i - iIii1I11I1II1 / I1IiiI.II111iiii + iIii1I11I1II1 if 19 - 19: OoO0O00 - Oo0Ooo.O0 if 60 - 60: II111iiii + Oo0Ooo if 9 - 9: ooOoO0o * OoooooooOO - iIii1I11I1II1 + OoOoOO00 / OoO0O00.OoO0O00 Ii1Iii1iIi.stats.increment(len(oO0OOOO0.packet)) if 49 - 49: II111iiii if 25 - 25: OoooooooOO - I1IiiI.I1IiiI * oO0o if 81 - 81: iII111i + IiII if 98 - 98: I1IiiI o00o0, II1I, II1I1I1Ii, OOOOoO00o0O, I1I1I1IIi1III = Ii1Iii1iIi.select_rloc( oO0OOOO0, None) if 5 - 5: Oo0Ooo % ooOoO0o % i11iIiiIii + o0oOOo0O0Ooo / I1ii11iIi11i - I1ii11iIi11i if (o00o0 == None and I1I1I1IIi1III == None): if (OOOOoO00o0O == lisp.LISP_NATIVE_FORWARD_ACTION): lisp.dprint("Natively forwarding") oO0OOOO0.send_packet(iiI1iIiI, oO0OOOO0.inner_dest) return if 45 - 45: I1ii11iIi11i % I1IiiI - i11iIiiIii lisp.dprint("No reachable RLOCs found") return if 11 - 11: iIii1I11I1II1 * iIii1I11I1II1 * I1IiiI if (o00o0 and o00o0.is_null()): lisp.dprint("Drop action RLOC found") return if 46 - 46: OoOoOO00 + OoO0O00 if 70 - 70: iII111i / iIii1I11I1II1 if 85 - 85: OoooooooOO % i1IIi * OoooooooOO / I1ii11iIi11i if 96 - 96: OoooooooOO + oO0o if 44 - 44: oO0o oO0OOOO0.outer_tos = oO0OOOO0.inner_tos oO0OOOO0.outer_ttl = oO0OOOO0.inner_ttl if 20 - 20: I11i + Ii1I / O0 % iIii1I11I1II1 if 88 - 88: OoOoOO00 / II111iiii if 87 - 87: I1ii11iIi11i - I1ii11iIi11i - iII111i + oO0o if 82 - 82: oO0o / iIii1I11I1II1.I1IiiI.OOooOOo / o0oOOo0O0Ooo if (o00o0): oO0OOOO0.encap_port = II1I if (II1I == 0): oO0OOOO0.encap_port = lisp.LISP_DATA_PORT oO0OOOO0.outer_dest.copy_address(o00o0) iiI1I1 = oO0OOOO0.outer_dest.afi_to_version() oO0OOOO0.outer_version = iiI1I1 ooO = lisp.lisp_myrlocs[0] if (iiI1I1 == 4) else lisp.lisp_myrlocs[1] if 6 - 6: iIii1I11I1II1.ooOoO0o % o0oOOo0O0Ooo oO0OOOO0.outer_source.copy_address(ooO) if 50 - 50: iII111i + O0 + Ii1I.II111iiii / o0oOOo0O0Ooo if 17 - 17: Ii1I % iIii1I11I1II1 - iIii1I11I1II1 if 78 - 78: iII111i + I11i.ooOoO0o - iII111i.Ii1I if 30 - 30: I1IiiI + OoO0O00 % Ii1I * iII111i / Oo0Ooo - I11i if (oO0OOOO0.encode(II1I1I1Ii) == None): return if (len(oO0OOOO0.packet) <= 1500): oO0OOOO0.print_packet("Send", True) if 64 - 64: iIii1I11I1II1 if 21 - 21: Oo0Ooo.II111iiii if 54 - 54: II111iiii % II111iiii if 86 - 86: O0 % Ii1I * ooOoO0o * iIii1I11I1II1 * i1IIi * I11i OOOoOOO0oO = OOo if iiI1I1 == 6 else iiI1iIiI oO0OOOO0.send_packet(OOOoOOO0oO, oO0OOOO0.outer_dest) if 28 - 28: ooOoO0o + i11iIiiIii / I11i % OoOoOO00 % Oo0Ooo - O0 elif (I1I1I1IIi1III): if 54 - 54: i1IIi + II111iiii if 83 - 83: I1ii11iIi11i - I1IiiI + OOooOOo if 5 - 5: Ii1I if 46 - 46: IiII ii1iIi1iIiI1i = len(oO0OOOO0.packet) for iiI1iIii1i in I1I1I1IIi1III.rle_forwarding_list: oO0OOOO0.outer_dest.copy_address(iiI1iIii1i.address) oO0OOOO0.encap_port = lisp.LISP_DATA_PORT if iiI1iIii1i.translated_port == 0 else iiI1iIii1i.translated_port if 70 - 70: OoO0O00 * O0.I11i + I1IiiI.IiII if 14 - 14: iIii1I11I1II1 % iIii1I11I1II1 * i11iIiiIii - OoO0O00 - I11i iiI1I1 = oO0OOOO0.outer_dest.afi_to_version() oO0OOOO0.outer_version = iiI1I1 ooO = lisp.lisp_myrlocs[0] if (iiI1I1 == 4) else lisp.lisp_myrlocs[1] if 63 - 63: OoO0O00 oO0OOOO0.outer_source.copy_address(ooO) if 69 - 69: iIii1I11I1II1.I1ii11iIi11i % ooOoO0o + iIii1I11I1II1 / O0 / I1ii11iIi11i if (oO0OOOO0.encode(None) == None): return if 61 - 61: OOooOOo % OOooOOo * o0oOOo0O0Ooo / o0oOOo0O0Ooo oO0OOOO0.print_packet("Replicate-to-L{}".format(iiI1iIii1i.level), True) oO0OOOO0.send_packet(iiI1iIiI, oO0OOOO0.outer_dest) if 75 - 75: IiII.ooOoO0o if 50 - 50: OoOoOO00 if 60 - 60: ooOoO0o * iIii1I11I1II1 * I1ii11iIi11i * Oo0Ooo if 69 - 69: Ii1I * O0.i11iIiiIii / Ii1I.o0oOOo0O0Ooo if 63 - 63: I11i + o0oOOo0O0Ooo.II111iiii - I1IiiI oOOO00o000o = len(oO0OOOO0.packet) - ii1iIi1iIiI1i oO0OOOO0.packet = oO0OOOO0.packet[oOOO00o000o::] if 9 - 9: oO0o + I11i / I11i if (lisp.lisp_flow_logging): oO0OOOO0 = copy.deepcopy(oO0OOOO0) if 12 - 12: OoooooooOO % o0oOOo0O0Ooo * I11i % iIii1I11I1II1 / Ii1I if 27 - 27: i11iIiiIii % II111iiii % I11i.O0 - Oo0Ooo + OoOoOO00 if 57 - 57: iIii1I11I1II1 / I11i - i1IIi if 51 - 51: IiII if 25 - 25: OoooooooOO + IiII * I1ii11iIi11i if 92 - 92: I1IiiI + I11i + O0 / o0oOOo0O0Ooo + I1Ii111 del (oO0OOOO0) return if 18 - 18: ooOoO0o * OoOoOO00.iII111i / I1ii11iIi11i / i11iIiiIii if 21 - 21: oO0o / I1ii11iIi11i + Ii1I + OoooooooOO if 91 - 91: i11iIiiIii / i1IIi + iII111i + ooOoO0o * i11iIiiIii if 66 - 66: iIii1I11I1II1 % i1IIi - O0 + I11i * I1Ii111.IiII if 52 - 52: ooOoO0o + O0.iII111i.I1ii11iIi11i.OoO0O00 if 97 - 97: I1IiiI / iII111i if 71 - 71: II111iiii / i1IIi.I1ii11iIi11i % OoooooooOO.OoOoOO00
exit(1) if 59 - 59: OOooOOo + i11iIiiIii if 88 - 88: i11iIiiIii - ooOoO0o O0iIi1IiII = [Oo0oO0oo0oO00, oO0oIIII] I1i = [Oo0oO0oo0oO00] * 3 if 72 - 72: iIii1I11I1II1 while (True): try: iiIi, oO, Ii111 = select.select(O0iIi1IiII, [], []) except: break if 67 - 67: O0 if (Oo0oO0oo0oO00 in iiIi): Ooo, oO0OO0, ooooo0o, oo0OoOOO0o0 = lisp.lisp_receive(I1i[0], False) if (oO0OO0 == ""): break lisp.lisp_parse_packet(I1i, oo0OoOOO0o0, oO0OO0, ooooo0o) continue if 19 - 19: II111iiii * IiII + Ii1I if 65 - 65: OOooOOo.I1Ii111.OoO0O00.iII111i - OOooOOo Ooo, oO0OO0, ooooo0o, oo0OoOOO0o0 = lisp.lisp_receive(oO0oIIII, True) if 19 - 19: i11iIiiIii + iII111i % ooOoO0o if (oO0OO0 == ""): break if 14 - 14: OoO0O00.II111iiii.I11i / Ii1I % I1ii11iIi11i - ooOoO0o if (Ooo == "command"): if (oo0OoOOO0o0 == "clear"): iIiiI1() continue if 67 - 67: I11i - OOooOOo.i1IIi lispconfig.lisp_process_command(oO0oIIII, Ooo, oo0OoOOO0o0, "lisp-mr", [Ii]) else:
if 1 - 1: IiII / IiII - i11iIiiIii if 87 - 87: Oo0Ooo / O0 * IiII / o0oOOo0O0Ooo if 19 - 19: I1Ii111 + i1IIi.I1IiiI - Oo0Ooo if (i111I in OoOo): iIi1I1, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive(oO00oOOo0Oo[0], False) if (OO == ""): break if (lisp.lisp_is_rloc_probe_request(oO0OOOO0[0])): lisp.lprint("RTR ignoring RLOC-probe request, using pcap") continue if 63 - 63: iII111i * I1ii11iIi11i.OoooooooOO / OOooOOo * Oo0Ooo.ooOoO0o if (lisp.lisp_is_rloc_probe_reply(oO0OOOO0[0])): lisp.lprint("RTR ignoring RLOC-probe reply, using pcap") continue if 62 - 62: i1IIi / ooOoO0o.I1IiiI * o0oOOo0O0Ooo lisp.lisp_parse_packet(oO00oOOo0Oo, oO0OOOO0, OO, IIIIii) if 21 - 21: o0oOOo0O0Ooo if 81 - 81: I11i / iIii1I11I1II1 - ooOoO0o * I1Ii111.I1IiiI * I1ii11iIi11i if 95 - 95: I1IiiI if 88 - 88: IiII % OoO0O00 + I1Ii111 + I1Ii111 * II111iiii if 78 - 78: OoooooooOO if 77 - 77: I1ii11iIi11i / i1IIi / Oo0Ooo % OOooOOo if (oO0oIIII in OoOo): iIi1I1, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive(oO0oIIII, True) if 48 - 48: I11i - IiII + iIii1I11I1II1 + OoooooooOO if (OO == ""): break if 4 - 4: II111iiii.I11i + Ii1I * I1Ii111.ooOoO0o if (iIi1I1 == "command"): if (oO0OOOO0 == "clear"): lisp.lisp_clear_map_cache()
if 50 - 50: OoooooooOO if 4 - 4: II111iiii.I11i + Ii1I * I1Ii111.ooOoO0o if 87 - 87: OoOoOO00 / OoO0O00 / i11iIiiIii if (i111I in OO000oOoo0O): oO0OO, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive(IiII1iiI[0], False) if (OO == ""): break if (lisp.lisp_is_rloc_probe_request(oO0OOOO0[0])): lisp.lprint("RTR ignoring RLOC-probe request, using pcap") continue if 88 - 88: OoOoOO00 - i11iIiiIii % o0oOOo0O0Ooo * I11i + I1ii11iIi11i if (lisp.lisp_is_rloc_probe_reply(oO0OOOO0[0])): lisp.lprint("RTR ignoring RLOC-probe reply, using pcap") continue if 52 - 52: II111iiii.I1IiiI + OoOoOO00 % OoO0O00 lisp.lisp_parse_packet(IiII1iiI, oO0OOOO0, OO, IIIIii) if 62 - 62: o0oOOo0O0Ooo if 15 - 15: I11i + Ii1I.OOooOOo * OoO0O00.OoOoOO00 if 18 - 18: i1IIi % II111iiii + I1Ii111 % Ii1I if 72 - 72: iIii1I11I1II1 if 45 - 45: Oo0Ooo - o0oOOo0O0Ooo % I1Ii111 if 38 - 38: I1Ii111 % OOooOOo - OoooooooOO if (oO0oIIII in OO000oOoo0O): oO0OO, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive(oO0oIIII, True) if 87 - 87: OoO0O00 % I1IiiI if (OO == ""): break if 77 - 77: iIii1I11I1II1 - i1IIi.oO0o if (oO0OO == "command"): if (oO0OOOO0 == "clear"): lisp.lisp_clear_map_cache() continue
iIii1I11I1II1 % OoOoOO00 % o0oOOo0O0Ooo % I1Ii111.I1ii11iIi11i % O0 if 47 - 47: o0oOOo0O0Ooo if 66 - 66: I1IiiI - IiII if (II1Ii1iI1i in iIiIIi): I1I1Iiii1, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive( Ooo00o0oOo0O0O[0], False) if (OO == ""): break if (lisp.lisp_is_rloc_probe_request(oO0OOOO0[0])): lisp.lprint("RTR ignoring RLOC-probe request, using pcap") continue if 33 - 33: I1IiiI / OoO0O00 if (lisp.lisp_is_rloc_probe_reply(oO0OOOO0[0])): lisp.lprint("RTR ignoring RLOC-probe reply, using pcap") continue if 12 - 12: II111iiii lisp.lisp_parse_packet(Ooo00o0oOo0O0O, oO0OOOO0, OO, IIIIii) if 2 - 2: i1IIi - I1IiiI + I11i.II111iiii if 25 - 25: oO0o if 34 - 34: OoOoOO00.iIii1I11I1II1 % O0 if 43 - 43: I1ii11iIi11i - iII111i if 70 - 70: iII111i / OOooOOo % ooOoO0o - Ii1I if 47 - 47: iII111i if (Oo0oO0oo0oO00 in iIiIIi): I1I1Iiii1, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive( Oo0oO0oo0oO00, True) if 92 - 92: OOooOOo + OoOoOO00 % i1IIi if (OO == ""): break if 23 - 23: I1Ii111 - OOooOOo + Ii1I - OoOoOO00 * OoOoOO00.Oo0Ooo if (I1I1Iiii1 == "command"): if (oO0OOOO0 == "clear"): lisp.lisp_clear_map_cache()
#endif socket_list = [lisp_ephem_listen_socket, lisp_ipc_listen_socket] ephem_sockets = [lisp_ephem_listen_socket] * 3 while (True): try: ready_list, w, x = select.select(socket_list, [], []) except: break if (lisp_ephem_listen_socket in ready_list): opcode, source, port, packet = lisp.lisp_receive( ephem_sockets[0], False) if (source == ""): break lisp.lisp_parse_packet(ephem_sockets, packet, source, port) continue #endif opcode, source, port, packet = \ lisp.lisp_receive(lisp_ipc_listen_socket, True) if (source == ""): break if (opcode == "command"): if (packet == "clear"): lisp_clear_referral_cache() continue #endif lispconfig.lisp_process_command(lisp_ipc_listen_socket, opcode, packet, "lisp-mr", [lisp_mr_commands]) else:
if 51 - 51: IiII * O0 / II111iiii.Ii1I % OOooOOo / I1IiiI if 9 - 9: I1IiiI % I1IiiI % II111iiii I1I1i1I = [O0oO, oooO0oo0oOOOO] oo0oo = [O0oO] * 3 if 41 - 41: OoOoOO00 * I11i / OoOoOO00 % oO0o while (True): try: Ii, oO0oOOO0Ooo, i1i1I = select.select(I1I1i1I, [], []) except: break if 25 - 25: iIii1I11I1II1 + I1ii11iIi11i + iII111i / II111iiii / I11i if (O0oO in Ii): o0O0Oo00Oo0o, Ii1i1i1i1I1Ii, OOOo, oo0OOo0O = lisp.lisp_receive( oo0oo[0], False) if (Ii1i1i1i1I1Ii == ""): break lisp.lisp_parse_packet(oo0oo, oo0OOo0O, Ii1i1i1i1I1Ii, OOOo) continue if 39 - 39: OoooooooOO + oO0o % OOooOOo / OOooOOo if 27 - 27: iII111i.I11i.iIii1I11I1II1.iIii1I11I1II1 o0O0Oo00Oo0o, Ii1i1i1i1I1Ii, OOOo, oo0OOo0O = lisp.lisp_receive( oooO0oo0oOOOO, True) if 20 - 20: o0oOOo0O0Ooo / i1IIi if (Ii1i1i1i1I1Ii == ""): break if 71 - 71: OoOoOO00.i1IIi if (o0O0Oo00Oo0o == "command"): oo0OOo0O = oo0OOo0O.decode() if (oo0OOo0O == "clear"): oo() continue if 94 - 94: OOooOOo.I1Ii111 lispconfig.lisp_process_command(oooO0oo0oOOOO, o0O0Oo00Oo0o, oo0OOo0O,