Add fn fd_to_family() to obtain address family