Modified tcp.c for always setup sin_family