Fix typos, compiler errors.

Added key_table to rtr_socket