iI1Ii11iIiI1 = lisp.LISP_AFI_IPV4 OO0Oooo0oOO0O = 32 else: print("Invalid Map-Resolver address {}".format(i11iIIIIIi1)) Ii11Ii1I(Oo0oO0oo0oO00) exit(1) if 73 - 73: OoooooooOO * OoooooooOO * ooOoO0o * OoOoOO00 + ooOoO0o * I1Ii111 i11iIIIIIi1 = lisp.lisp_address(iI1Ii11iIiI1, i11iIIIIIi1, OO0Oooo0oOO0O, 0) if 88 - 88: I1ii11iIi11i if 11 - 11: ooOoO0o / OoOoOO00 - IiII * OoooooooOO + OoooooooOO.OoOoOO00 if 26 - 26: Ii1I % I1ii11iIi11i if 76 - 76: IiII * iII111i if 52 - 52: OOooOOo iiii1 = None ooO0oooOO0 = lisp.lisp_get_local_rloc() if 71 - 71: I1Ii111.II111iiii if (ooO0oooOO0 == None): print("Cannot obtain a local address") Ii11Ii1I(Oo0oO0oo0oO00) 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)
elif (mr.find(".") != -1): afi = lisp.LISP_AFI_IPV4 ml = 32 else: print("Invalid Map-Resolver address {}".format(mr)) lisp_lig_close_sockets(lisp_sockets) exit(1) #endif mr = lisp.lisp_address(afi, mr, ml, 0) # # If we are behind a NAT, send a Info-Request to the DDT-node, wait for # Info-Reply before proceeding. # global_address = None local_address = lisp.lisp_get_local_rloc() if (local_address == None): print("Cannot obtain a local address") 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)