strncpy(session->hostname, session_info.hostname,
sizeof(session->hostname));
session->live_timer = be32toh(session_info.live_timer);
strncpy(session->hostname, session_info.hostname,
sizeof(session->hostname));
session->live_timer = be32toh(session_info.live_timer);