Пример #1
0
def oOo0oooo00o(socket_list, lisp_ephem_listen_socket, lisp_listen_socket,
                lisp_ipc_socket):
    if 65 - 65: o0oOOo0O0Ooo * iIii1I11I1II1 * ooOoO0o
    IiI1i, OOo0o0, O0OoOoo00o = select.select(socket_list, [], [], 2)
    if 31 - 31: II111iiii + OoO0O00.I1Ii111
    if (lisp_ephem_listen_socket in IiI1i):
        OoOooOOOO, i11iiII, I1iiiiI1iII, IiIi11i = lisp.lisp_receive(
            lisp_ephem_listen_socket, False)
        if 43 - 43: o0oOOo0O0Ooo * O0
    elif (lisp_listen_socket in IiI1i):
        OoOooOOOO, i11iiII, I1iiiiI1iII, IiIi11i = lisp.lisp_receive(
            lisp_listen_socket, False)
    elif (lisp_ipc_socket in IiI1i):
        OoOooOOOO, i11iiII, I1iiiiI1iII, IiIi11i = lisp.lisp_receive(
            lisp_ipc_socket, True)
    else:
        return ("", "", 0, None)
        if 25 - 25: iII111i + ooOoO0o % ooOoO0o - oO0o * o0oOOo0O0Ooo % iII111i
    return (OoOooOOOO, i11iiII, I1iiiiI1iII, IiIi11i)
    if 55 - 55: OoOoOO00 % i1IIi / Ii1I - oO0o - O0 / II111iiii
    if 28 - 28: iIii1I11I1II1 - i1IIi
    if 70 - 70: OoO0O00.OoO0O00 - OoO0O00 / I1ii11iIi11i * OOooOOo
    if 86 - 86: i11iIiiIii + Ii1I + ooOoO0o * I11i + o0oOOo0O0Ooo
    if 61 - 61: OoO0O00 / i11iIiiIii
    if 34 - 34:
        OoooooooOO + iIii1I11I1II1 + i11iIiiIii - I1ii11iIi11i + i11iIiiIii
    if 65 - 65: OoOoOO00
Пример #2
0
def read_sockets(socket_list, lisp_ephem_listen_socket, lisp_listen_socket,
                 lisp_ipc_socket):

    ready_list, w, x = select.select(socket_list, [], [], 2)

    if (lisp_ephem_listen_socket in ready_list):
        opcode, source, port, packet = lisp.lisp_receive( \
            lisp_ephem_listen_socket, False)
    elif (lisp_listen_socket in ready_list):
        opcode, source, port, packet = lisp.lisp_receive(
            lisp_listen_socket, False)
    elif (lisp_ipc_socket in ready_list):
        opcode, source, port, packet = lisp.lisp_receive(lisp_ipc_socket, True)
    else:
        return ("", "", 0, None)
    #endif
    return (opcode, source, port, packet)
Пример #3
0
def lisp_rtr_process_trace_packet(lisp_socket):

    #
    # Read from listen socket for port 2434 and parse LISP-Trace packet.
    #
    opcode, source, port, packet = lisp.lisp_receive(lisp_socket, False)
    trace = lisp.lisp_trace()
    if (trace.decode(packet) == False): return

    #
    # Cache the translated information. Will use local addressing info to
    # find translated information in lisp_trace_append().
    #
    trace.rtr_cache_nat_trace(source, port)
Пример #4
0
def O00(lisp_socket):
    if 32 - 32: iIii1I11I1II1 * IiII / Ii1I % IiII
    if 42 - 42: I1Ii111 + I1Ii111 * II111iiii
    if 78 - 78: OoooooooOO
    if 77 - 77: I1ii11iIi11i / i1IIi / Oo0Ooo % OOooOOo
    I1I1Iiii1, OO, IIIIii, oO0OOOO0 = lisp.lisp_receive(lisp_socket, False)
    i111i1 = lisp.lisp_trace()
    if (i111i1.decode(oO0OOOO0) == False): return
    if 99 - 99: I1IiiI + i1IIi + i11iIiiIii + Oo0Ooo % oO0o / I11i
    if 60 - 60: Ii1I * OoOoOO00 - i11iIiiIii % ooOoO0o
    if 52 - 52: I1ii11iIi11i % oO0o - i11iIiiIii
    if 30 - 30: iII111i / OoO0O00 + oO0o
    if 6 - 6: iII111i.I11i + Ii1I.I1Ii111
    i111i1.rtr_cache_nat_trace(OO, IIIIii)
    if 70 - 70: OoO0O00
    if 46 - 46: I11i - i1IIi
    if 46 - 46: I1Ii111 % Ii1I
    if 72 - 72: iIii1I11I1II1
    if 45 - 45: Oo0Ooo - o0oOOo0O0Ooo % I1Ii111
    if 38 - 38: I1Ii111 % OOooOOo - OoooooooOO
    if 87 - 87: OoO0O00 % I1IiiI
Пример #5
0
    try: ready_list, w, x = select.select(socket_list, [], [])
    except: break

    #
    # Process Punt signal message from another data-plane (snabb).
    #
    if (lisp.lisp_ipc_data_plane and lisp_ipc_punt_socket in ready_list):
        lisp.lisp_process_punt(lisp_ipc_punt_socket, lisp_send_sockets,
            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)
Пример #6
0
}
if 75 - 75: i1IIi / O0 * o0oOOo0O0Ooo
if 29 - 29: I1IiiI % OOooOOo - I1IiiI / OOooOOo.i1IIi
if 31 - 31: I1Ii111
if 88 - 88: OoO0O00 - ooOoO0o + OOooOOo * I1IiiI % iIii1I11I1II1 + Oo0Ooo
if 76 - 76: I1IiiI * iII111i % I1Ii111
if 57 - 57: iIii1I11I1II1 - i1IIi / I1Ii111 - O0 * OoooooooOO % II111iiii
if (OooOo0ooo()):
    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")
Пример #7
0
#enddef

#------------------------------------------------------------------------------

#
# 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")
Пример #8
0
    lisp.lprint("lisp_mr_startup() failed")
    lisp.lisp_print_banner("Map-Resolver abnormal exit")
    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",
Пример #9
0
 except:
     break
 if 78 - 78: O0 * OOooOOo
 if 43 - 43: I1ii11iIi11i / I1IiiI.ooOoO0o
 if 62 - 62: iIii1I11I1II1 + iII111i.Oo0Ooo / IiII % O0.I1Ii111
 if 93 - 93:
     i11iIiiIii % iIii1I11I1II1 % i11iIiiIii + o0oOOo0O0Ooo / o0oOOo0O0Ooo / II111iiii
 if (lisp.lisp_ipc_data_plane and Oo0oO0oo0oO00 in OoOo):
     lisp.lisp_process_punt(Oo0oO0oo0oO00, II1iII1i, II1Ii1iI1i)
     if 49 - 49: OOooOOo.I1ii11iIi11i.i11iIiiIii - II111iiii / Ii1I
     if 62 - 62: OOooOOo
     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
Пример #10
0
     if 56 - 56: I1ii11iIi11i % O0 - I1IiiI
     if 100 - 100: Ii1I - O0 % oO0o * OOooOOo + I1IiiI
 Oo0O0oooo = []
 for OOO0O in Oo0oO0oo0oO00:
     if (OOO0O == None): continue
     Oo0O0oooo.append(OOO0O)
     if 33 - 33: I1Ii111 + iII111i * oO0o / iIii1I11I1II1 - I1IiiI
     if 54 - 54: I1Ii111 / OOooOOo.oO0o % iII111i
     if 57 - 57: i11iIiiIii.I1ii11iIi11i - Ii1I - oO0o + OoOoOO00
     if 63 - 63: OoOoOO00 * iII111i
     if 69 - 69: O0.OoO0O00
     if 49 - 49: I1IiiI - I11i
 OoOOoOooooOOo, oOo0O, oo0O0 = select.select(Oo0O0oooo, [], [], 2)
 if 22 - 22: OoOoOO00.OOooOOo * OoOoOO00
 if (Oo0oO0oo0oO00[0] in OoOOoOooooOOo):
     O000OOO, II, o0o0O0O00oOOo, III1Iiii1I11 = lisp.lisp_receive(
         Oo0oO0oo0oO00[0], False)
     if 14 - 14: OoOoOO00 + oO0o
 elif (Oo0oO0oo0oO00[1] in OoOOoOooooOOo):
     O000OOO, II, o0o0O0O00oOOo, III1Iiii1I11 = lisp.lisp_receive(
         Oo0oO0oo0oO00[1], False)
     if 52 - 52: OoooooooOO - ooOoO0o
 elif (oO0oIIII in OoOOoOooooOOo):
     O000OOO, II, o0o0O0O00oOOo, III1Iiii1I11 = lisp.lisp_receive(
         oO0oIIII, True)
     if 74 - 74: iII111i + o0oOOo0O0Ooo
 elif (II1iII1i in OoOOoOooooOOo):
     O000OOO, II, o0o0O0O00oOOo, III1Iiii1I11 = lisp.lisp_receive(
         II1iII1i, False)
     if 71 - 71: Oo0Ooo % OOooOOo
 else:
     continue
Пример #11
0
    exit(1)
    if 62 - 62: OoooooooOO.I11i
oOOOoo00 = lisp.LISP_CTRL_PORT
if 9 - 9: O0 % O0 - o0oOOo0O0Ooo
if (ooO0oooOO0 != None and ooO0oooOO0.is_private_address()
        and "no-info" not in sys.argv):
    print "Possible NAT in path, sending Info-Request ... "
    if 51 - 51: I1IiiI.iIii1I11I1II1 - I1ii11iIi11i / O0
    OOOoO00 = lisp.lisp_convert_4to6(i11iIIIIIi1.print_address_no_iid())
    lisp.lisp_send_info_request(Oo0oO0oo0oO00, OOOoO00, lisp.LISP_CTRL_PORT,
                                None)
    if 40 - 40: I1ii11iIi11i % I1IiiI.ooOoO0o.O0 * I1Ii111
    if 4 - 4: Ii1I % oO0o * OoO0O00
    if 100 - 100: I1Ii111 * OOooOOo + OOooOOo
    if 54 - 54: OoooooooOO + o0oOOo0O0Ooo - i1IIi % i11iIiiIii
    OoOooOOOO, i11iiII, I1iiiiI1iII, IiIi11i = lisp.lisp_receive(
        oO0oIIII, False)
    if 3 - 3: o0oOOo0O0Ooo % o0oOOo0O0Ooo
    if (i11iiII != ""):
        OoOOo0OOoO = lisp.lisp_control_header()
        if (OoOOo0OOoO.decode(IiIi11i) == None
                or OoOOo0OOoO.info_reply == False):
            i11iiII = ""
            if 83 - 83: II111iiii + I1Ii111
            if 73 - 73: iII111i
            if 42 - 42:
                i11iIiiIii * iIii1I11I1II1 / I1ii11iIi11i.i11iIiiIii % I11i
            if 41 - 41: IiII / O0
            if 51 - 51: I11i % I1IiiI
            if 60 - 60: I1IiiI / OOooOOo.I1IiiI / I1Ii111.IiII
    if (i11iiII == ""):
        print "No Info-Reply received"
Пример #12
0
     if 78 - 78: I1ii11iIi11i + OOooOOo - I1Ii111
     if 38 - 38: o0oOOo0O0Ooo - oO0o + iIii1I11I1II1 / OoOoOO00 % Oo0Ooo
 oO0o0 = []
 for o000o0o00o0Oo in O0oO:
     if (o000o0o00o0Oo == None): continue
     oO0o0.append(o000o0o00o0Oo)
     if 50 - 50: IiII
     if 46 - 46: O0 + iII111i % I1IiiI / o0oOOo0O0Ooo.IiII * I11i
     if 93 - 93: o0oOOo0O0Ooo % i1IIi.Ii1I.i11iIiiIii
     if 56 - 56: I1ii11iIi11i % O0 - I1IiiI
     if 100 - 100: Ii1I - O0 % oO0o * OOooOOo + I1IiiI
     if 88 - 88: OoooooooOO - OoO0O00 * O0 * OoooooooOO.OoooooooOO
 I111iI, oOOo0, II1I1iiIII = select.select(oO0o0, [], [], 2)
 if 77 - 77: OoOoOO00 - II111iiii - ooOoO0o
 if (O0oO[0] in I111iI):
     IiiiIIiIi1, OoOOoOooooOOo, oOo0O, iI11Ii = lisp.lisp_receive(
         O0oO[0], False)
     if 52 - 52: i11iIiiIii / o0oOOo0O0Ooo * ooOoO0o
 elif (O0oO[1] in I111iI):
     IiiiIIiIi1, OoOOoOooooOOo, oOo0O, iI11Ii = lisp.lisp_receive(
         O0oO[1], False)
     if 22 - 22: OoOoOO00.OOooOOo * OoOoOO00
 elif (oooO0oo0oOOOO in I111iI):
     IiiiIIiIi1, OoOOoOooooOOo, oOo0O, iI11Ii = lisp.lisp_receive(
         oooO0oo0oOOOO, True)
     if 54 - 54: IiII + Ii1I % OoO0O00 + OoooooooOO - O0 - o0oOOo0O0Ooo
 elif (i1I1ii1II1iII in I111iI):
     IiiiIIiIi1, OoOOoOooooOOo, oOo0O, iI11Ii = lisp.lisp_receive(
         i1I1ii1II1iII, False)
     if 77 - 77: OOooOOo * iIii1I11I1II1
 else:
     continue
Пример #13
0
     OO000oOoo0O, iIIiii11iIiiI, O0Oo0 = select.select(OO0o, [], [])
 except:
     break
 if 98 - 98: I1Ii111
 if 92 - 92: I1Ii111 - iIii1I11I1II1
 if 32 - 32: Ii1I % OoO0O00 * OoO0O00 + IiII * II111iiii * Ii1I
 if 11 - 11: oO0o % II111iiii
 if (lisp.lisp_ipc_data_plane and Oo0oO0oo0oO00 in OO000oOoo0O):
     lisp.lisp_process_punt(Oo0oO0oo0oO00, II1iII1i, II1Ii1iI1i)
     if 57 - 57: OOooOOo / Oo0Ooo
     if 69 - 69: oO0o - Oo0Ooo % IiII
     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
Пример #14
0
     if 18 - 18: OOooOOo + I1Ii111
     if 80 - 80: oO0o + o0oOOo0O0Ooo * Ii1I + OoO0O00
     if 75 - 75: I11i / o0oOOo0O0Ooo / OOooOOo / IiII % ooOoO0o + II111iiii
     if 4 - 4: iII111i - Oo0Ooo - IiII - I11i % i11iIiiIii / OoO0O00
     if 50 - 50: ooOoO0o + i1IIi
 if (oO0oIIII in iIiIIi):
     O00(oO0oIIII)
     if 31 - 31: Ii1I
     if 78 - 78:
         i11iIiiIii + o0oOOo0O0Ooo + I1Ii111 / o0oOOo0O0Ooo % iIii1I11I1II1 % IiII
     if 83 - 83:
         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
Пример #15
0
    lisp_lig_close_sockets(lisp_sockets)
    exit(1)
#endif
source_port = lisp.LISP_CTRL_PORT

if (local_address != None and local_address.is_private_address() and 
    "no-info" not in sys.argv):
    print "Possible NAT in path, sending Info-Request ... "

    dest = lisp.lisp_convert_4to6(mr.print_address_no_iid())
    lisp.lisp_send_info_request(lisp_sockets, dest, lisp.LISP_CTRL_PORT, None)

    #
    # Wait 2 seconds for Info-Reply.
    #
    opcode, source, port, packet = lisp.lisp_receive(lisp_ephem_listen_socket,
        False)

    if (source != ""):
        header = lisp.lisp_control_header()
        if (header.decode(packet) == None or header.info_reply == False):
            source = ""
        #endif
    #endif

    #
    # No Info-Reply received.
    #
    if (source == ""):
        print "No Info-Reply received"
        lisp_lig_close_sockets(lisp_sockets)
        exit(1)
Пример #16
0
    #
    sockets = []
    for s in lisp_sockets:
        if (s == None): continue
        sockets.append(s)
    #endif

    #
    # Wait 2 seconds for Map-Referral and if it does not come in, retry Map-
    # Request up to count times.
    #
    ready_list, w, x = select.select(sockets, [], [], 2)

    if (lisp_sockets[0] in ready_list):
        opcode, source, port, packet = \
            lisp.lisp_receive(lisp_sockets[0], False)
    elif (lisp_sockets[1] in ready_list):
        opcode, source, port, packet = \
            lisp.lisp_receive(lisp_sockets[1], False)
    elif (lisp_ipc_socket in ready_list):
        opcode, source, port, packet = \
            lisp.lisp_receive(lisp_ipc_socket, True)
    elif (lisp_listen_socket in ready_list):
        opcode, source, port, packet = \
            lisp.lisp_receive(lisp_listen_socket, False)
    else:
        continue
    #endif

    #
    # Either process Map-Referral or retransmit if we have timed out.
Пример #17
0
    "show delegations": [I111I1Iiii1i, {}],
}
if 50 - 50: OOooOOo * I1IiiI % iIii1I11I1II1 + Ii1I + iII111i + I1IiiI
if 71 - 71: I1ii11iIi11i * I1ii11iIi11i * i1IIi.oO0o / I1Ii111
if 85 - 85: I11i
if 20 - 20: oO0o % IiII
if 19 - 19: I1ii11iIi11i % IiII + ooOoO0o / I1Ii111.ooOoO0o
if 12 - 12: i1IIi + i1IIi - I1ii11iIi11i * Oo0Ooo % Oo0Ooo - II111iiii
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")
Пример #18
0
    lisp.lprint("lisp_mr_startup() failed")
    lisp.lisp_print_banner("Map-Resolver abnormal exit")
    exit(1)
    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