so_options_get
if (V_tcp_always_keepalive || so_options_get(so) & SO_KEEPALIVE)
int so_options_get(const struct socket *);