add tcp_get_selected_window to tcp_output.c and tcp.h