replace obsolete PF_INET and use AF_INET instead