def lisp_rtr_shutdown(): # # Close sockets. # lisp.lisp_close_socket(lisp_send_sockets[0], "") lisp.lisp_close_socket(lisp_send_sockets[1], "") lisp.lisp_close_socket(lisp_ipc_listen_socket, "lisp-rtr") lisp.lisp_close_socket(lisp_ephem_listen_socket, "") lisp.lisp_close_socket(lisp_trace_listen_socket, "") lisp.lisp_close_socket(lisp_ipc_punt_socket, "lispers.net-itr") lisp_raw_socket.close() return
def lisp_itr_shutdown(): # # Cancel periodic Info timer threads. # if (lisp_itr_info_timer): lisp_itr_info_timer.cancel() # # Close sockets. # lisp.lisp_close_socket(lisp_send_sockets[0], "") lisp.lisp_close_socket(lisp_send_sockets[1], "") lisp.lisp_close_socket(lisp_ephem_listen_socket, "") lisp.lisp_close_socket(lisp_ephem_nat_socket, "") lisp.lisp_close_socket(lisp_ipc_listen_socket, "lisp-itr") lisp.lisp_close_socket(lisp_ipc_punt_socket, "lispers.net-itr") return