Example #1
0
    #
    # Process either commands, an IPC data-packet (for testing), or any
    # protocol message on the IPC listen socket..
    #
    if (lisp_ipc_listen_socket in ready_list):
        opcode, source, port, packet = \
            lisp.lisp_receive(lisp_ipc_listen_socket, True)
        if (source == ""): break

        if (opcode == "command"): 
            if (packet == "clear"): 
                lisp.lisp_clear_map_cache()
                continue
            #endif
            if (packet.find("clear%") != -1):
                lispconfig.lisp_clear_decap_stats(packet)
                continue
            #endif
            lispconfig.lisp_process_command(lisp_ipc_listen_socket, opcode, 
                packet, "lisp-rtr", [lisp_rtr_commands])
        elif (opcode == "api"):
            lisp.lisp_process_api("lisp-rtr", lisp_ipc_listen_socket, packet)
        elif (opcode == "data-packet"):
            lisp_rtr_data_plane(packet, "")
        else:
            if (lisp.lisp_is_rloc_probe_request(packet[0])):
                lisp.lprint("RTR ignoring RLOC-probe request, using pcap")
                continue
            #endif
            if (lisp.lisp_is_rloc_probe_reply(packet[0])):
                lisp.lprint("RTR ignoring RLOC-probe reply, using pcap")
Example #2
0
     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()
             continue
             if 87 - 87: OoOoOO00 / OoO0O00 / i11iIiiIii
         if (oO0OOOO0.find("clear%") != -1):
             lispconfig.lisp_clear_decap_stats(oO0OOOO0)
             continue
             if 74 - 74: oO0o / I1ii11iIi11i % o0oOOo0O0Ooo
         lispconfig.lisp_process_command(oO0oIIII, iIi1I1, oO0OOOO0,
                                         "lisp-rtr", [OOoO])
     elif (iIi1I1 == "api"):
         lisp.lisp_process_api("lisp-rtr", oO0oIIII, oO0OOOO0)
     elif (iIi1I1 == "data-packet"):
         O0O(oO0OOOO0, "")
     else:
         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])):